-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
92 lines (83 loc) · 2.6 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
81
82
83
84
85
86
87
88
89
90
91
92
# blocklist
branches:
except:
- gh-pages
matrix:
include:
- os: osx
language: generic
python: "2.7"
env: PYTHON_VERSION=2.7
- os: osx
language: generic
python: "3.4"
env: PYTHON_VERSION=3.4
- os: osx
language: generic
python: "3.5"
env: PYTHON_VERSION=3.5
- os: osx
language: generic
python: "3.6"
env: PYTHON_VERSION=3.6
- os: linux
language: python
python: "2.7"
env: PYTHON_VERSION=2.7
- os: linux
language: python
python: "3.4"
env: PYTHON_VERSION=3.4
- os: linux
language: python
python: "3.5"
env: PYTHON_VERSION=3.5
- os: linux
language: python
python: "3.6"
env: PYTHON_VERSION=3.6
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ $PYTHON_VERSION == 2* ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh;
elif [[ $PYTHON_VERSION == 3* ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ $PYTHON_VERSION == 2* ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ $PYTHON_VERSION == 3* ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda update -qy conda
#- conda info -a
- conda install python=$PYTHON_VERSION -y
- conda install conda-build pip -y
- conda install anaconda-client -y
#- conda list
#- python -E -V
- conda config --add channels conda-forge
- conda build develop/conda-recipe
#- python -E -V
- conda install mdsrv --use-local -y
script:
- mdsrv -h
- python develop/test.py data/md.xtc data/md.gro
after_success:
- tags: true
- branch: master
- echo $TRAVIS_TAG
- echo $CONDA_USER
- export CONDA_PACKAGE=`conda build --output develop/conda-recipe | grep bz2`
- echo $CONDA_PACKAGE
# Only for initial release (or special issues)
# - anaconda -t $CONDA_UPLOAD_TOKEN upload -u $CONDA_USER $CONDA_PACKAGE
# If this build is because of a tag, upload the build if it succeeds.
- if [ "$TRAVIS_TAG" ]; then anaconda -t $CONDA_UPLOAD_TOKEN upload -u $CONDA_USER $CONDA_PACKAGE; fi
notifications:
email: false