-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
44 lines (36 loc) · 1.4 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: python
# use container-based infrastructure
sudo : false
python:
- "2.7"
- "3.3"
- "3.4"
env:
- PINT="N" PYVISA='N'
- PINT="Y" PYVISA='Y'
before_install:
- REDIRECT_TO=/dev/stdout # change to /dev/null to silence Travis
- wget -q http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p ~/anaconda &> ${REDIRECT_TO}
- export PATH=~/anaconda/bin:$PATH
- conda update --yes --quiet conda &> ${REDIRECT_TO}
- SRC_DIR=$(pwd)
- export ENV_NAME=travis
install:
- conda create --yes -n $ENV_NAME python=$TRAVIS_PYTHON_VERSION pip > ${REDIRECT_TO};
- source activate $ENV_NAME
- conda install --yes --quiet future pytest > ${REDIRECT_TO};
- pip install -q pytest-cov pytest-capturelog funcsigs stringparser
# Use develop version of Pint
- if [ $PINT == 'Y' ]; then pip install https://github.com/hgrecco/pint/zipball/develop; fi
# Use develop version of pyvisa-py pyvisa-sim
- if [ $PYVISA == 'Y' ]; then pip install -q https://github.com/hgrecco/pyvisa/zipball/master; fi
- if [ $PYVISA == 'Y' ]; then pip install -q https://github.com/hgrecco/pyvisa-sim/zipball/master; fi
- if [ $PYVISA == 'Y' ]; then pip install -q https://github.com/hgrecco/pyvisa-py/zipball/master; fi
- pip install -q coveralls
script:
- cd ${SRC_DIR}
- py.test tests -v --cov lantz_core
after_script:
- coveralls --verbose