Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Add gitlab ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
vxgmichel committed Jun 13, 2017
1 parent 14610a7 commit 839f2ab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
before_script:
# Add conda to path
- export PATH="$PWD/miniconda/bin:$PATH"
# Install miniconda
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p ./miniconda -f
# Update conda
- conda update --yes conda
# Create build environment if it doesn't exist
- source activate buildenv || conda create --yes --name buildenv python=2.7
# Activate build environment
- source activate buildenv
# Install build dependencies
- conda install --yes -c tango-controls pytango
# pytest-cover has to be installed separately for some reasons
- pip install pytest-cover

run_tests:
# Run the tests
- python setup.py test

0 comments on commit 839f2ab

Please sign in to comment.