-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.9 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
language: generic
os:
- linux
- osx
env:
matrix:
- CONDA_ENV=3.7
- CONDA_ENV=3.6
global:
secure: snvWFpldVFmPDxM1iBcK9fH49n3HybfzgXpwgRF73ZEt78g4r+tGUHgZH1gPS0Aqdk0kmEC8g/Dg9spf6jCUe4dMmyUk3ap4EmNtTGOmL7W+lI0Ww4feEJWsm9eQxbdVvFYz3/QiXEpKHmMVYD5tf5fXM0NefXxRBEn5is1JSBZZ3Xaz+nBllvHlK5rgATH7Ppu2JPoKuiiyvyu7Fc4IuYnyhYmV/Krfq5W94ATkuffHjWV2QAPvhdF9nhDHuCh+JvzsvKzOikp17Y6pDWZWrw0oMV9p/wH3NJOGTh5mnwOCF7EU971jwKxzINijw7lbnVsB2Cp0uefepak2ykgTLL18urF8thlkv8XrPbCYOA0ZGZfBYpwq/T2uWG5yvVB0IEqoKr5D8PiBTxqvtJfIfjDoDJWSHcN79335Et/3ff8XohyOcwp4S1K1JrpZ+73CpKJADCkKiaQVP5/1smD1ARPYxJBjZl/z9hcKuiJ2MLy/ECW8BIPKG33tXjcLLs0B2naAEb+lktSKeW1sgN6XDhpI8eOLjRUUdMj7SdzZ5qZLL8ZnW4TNbvhVPSH8P4CvMK+zR32STg6Oi1/bgPFqdNAgYEeyGxdiB9XOIgW5C/nMBEfdmK0r2/PkNWDrQVHtwy5pE/9gqLz+WVcaWB/TqQQIangcBqj+JESgr+B8DJ8=
jobs:
include:
- stage: lint
os: linux
script:
- pip install flake8
- make lint
- stage: deploy
if: tag =~ v.*$
os: osx
env: CONDA_ENV=3.7
script:
- pip install twine wheel
- python setup.py bdist_wheel
- twine upload -u mcflugen -p$PYPI_PASS dist/*ups*
before_install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew remove --force $(brew list)
brew cleanup -s
rm -rf $(brew --cache)
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > $HOME/miniconda.sh
else
curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh
fi
- bash $HOME/miniconda.sh -b -p $(pwd)/anaconda
- export PATH="$(pwd)/anaconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda create -n test_env python=$CONDA_ENV
- source activate test_env
- conda info -a && conda list
install:
- pip install -e .
script:
- pip install pytest pytest-cov pytest-datadir coveralls
- pytest --cov=ups --cov-report=xml:$(pwd)/coverage.xml -vvv
after_success: coveralls