-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (67 loc) · 2.2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
sudo: false
branches:
only:
- master
env:
global:
- BINSTAR_USER: krodriguez
matrix:
- PYTHON_VERSION: 3.5
os:
- linux
- osx
install:
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ "$PYTHON_VERSION" == 2.7 ]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
else
if ["$PYTHON_VERSION" == 2.7]; then
curl -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh;
else
curl -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh;
fi
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Install dependencies
- conda config --add channels conda-forge
- conda config --add channels menpo
- conda config --add channels jlaura
- conda config --add channels krodriguez
- conda config --set ssl_verify false
- conda install python=$PYTHON_VERSION
# Development installation
- conda install pytest pytest-cov coverage sh anaconda-client
- pip install codecov
# Straight from the menpo team
- if [["$TRAVIS_OS_NAME" == "osx"]]; then
curl -o condaci.py https://raw.githubusercontent.com/menpo/condaci/v0.4.8/condaci.py;
else
wget https://raw.githubusercontent.com/menpo/condaci/v0.4.8/condaci.py -O condaci.py;
fi
# Build autocnet and push to anaconda cloud
# - python condaci.py setup
script:
- pytest --cov=halma
# clean up any remaining processes...
- if [ $TRAVIS_OS_NAME == "linux" ]; then killall5; fi
after_success:
# Upload to anaconda and push to coveralls
# - ~/miniconda/bin/python condaci.py build ./conda
- codecov
notifications:
webhooks:
# urls:
# - https://webhooks.gitter.im/e/6cbe4b65fff6764ed80f
# on_success: always
# on_failure: always