forked from mosdef-hub/mbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·37 lines (31 loc) · 1.19 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
language: generic
sudo: false
matrix:
include:
- { os: linux, env: PYTHON_VERSION=2.7 }
- { os: linux, env: PYTHON_VERSION=3.5 }
- { os: osx, env: PYTHON_VERSION=2.7 }
- { os: osx, env: PYTHON_VERSION=3.5 }
env:
global:
- ENCRYPTION_LABEL: "898e0934cf65"
- COMMIT_AUTHOR_EMAIL: "[email protected]"
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install md5sha1sum; fi
- source devtools/travis-ci/install.sh
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels omnia
- conda config --add channels janschulz
- conda config --add channels glotzer
- conda config --add channels bioconda
- conda config --add channels conda-forge
- conda config --add channels mosdef
- conda create -n test-environment python=$PYTHON_VERSION --file requirements.txt
- source activate test-environment
- pip install -e .
script:
- python -m pytest --ignore-flaky -v --cov=mbuild --cov-report= --pyargs mbuild
after_success:
- coveralls
- if [[ $PYTHON_VERSION == 3.5 ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source devtools/travis-ci/update_gh_pages.sh; fi