|
1 | | -language: python |
2 | | -python: |
3 | | - - "2.7" |
4 | | - - "3.5" |
5 | | - - "3.6" |
6 | | - |
| 1 | +language: generic |
7 | 2 | os: |
8 | | - - linux |
9 | | - |
| 3 | +- linux |
| 4 | +- osx |
| 5 | +env: |
| 6 | + matrix: |
| 7 | + - CONDA_ENV=3.7 |
| 8 | + - CONDA_ENV=3.6 |
| 9 | +sudo: false |
| 10 | +jobs: |
| 11 | + include: |
| 12 | + - stage: lint |
| 13 | + os: linux |
| 14 | + script: |
| 15 | + - make lint |
| 16 | + - stage: docs |
| 17 | + os: linux |
| 18 | + install: |
| 19 | + - conda env create --file docs/source/environment.yml |
| 20 | + - conda activate heat_docs |
| 21 | + script: |
| 22 | + - sphinx-apidoc --force -o docs heat *tests |
| 23 | + - make -C docs clean html |
| 24 | + - stage: deploy |
| 25 | + if: tag =~ v.*$ |
| 26 | + script: skip |
| 27 | + os: linux |
| 28 | + deploy: |
| 29 | + on: |
| 30 | + all_branches: true |
| 31 | + provider: pypi |
| 32 | + user: mcflugen |
| 33 | + password: |
| 34 | + secure: nCLTNxxwRBpvaeNosG+V1sQHeYPDd7zfcBvm5sGE6KVtGOfQtO0cNe1NwMKoVKH9Te9B2RJGs+s6tb4mMqJNuXpTyoFsAr+4gBxO9BSAdjm2wadcqyXexhU99L9oBhfrMAuGYEvV57LE57WaRQfmBnnKH9HE57fWmsx8VO50DEw3mMWKusZt4aFxNgpKwjUGJxtYDEIoOzfOdWAlRicPsZ21s/oMsrYKaYMG8mI8uM5/nVGc2jCb18HXflG9LnsmXlU8P/Jfa0Zu52MRgHuJnyflIDolgjkqPSgu8v/pGhjTCOS88tWSC09mIy1mdkZzJOOiIny+CLkEWxcQbikiVaXwq592+I6YcnW9TAls2hOChFaALYldZd5EopOmlc64DmQXMXCOPLbMM4wiUx63F/zJDZg1i0sMl0ucG5EpNPG18EerdygbvdcLLYKM70jSuqyYBOjk4pAO6Y1EvjffZMBu1XxuO/NvTZyAjoJTTb8xbO4s59Z7KB8sYi+9Gq1DATq1YXZ8k3GoU+KlOGJ73o+D87O95Q5qLWI30HvElKj72eEGMCsOTyvxmNZsEf9yCYbxzP9FEWrWV1uWUwWEV6tAATd7o3bcbp8+DzeglaLX8eOch8MwtxqR2aFvoiMQVTIXkfrn+emuZzhqQcTZSQMA9SztnQ8it4F7WeQWqH8= |
| 35 | +before_install: |
| 36 | +- | |
| 37 | + if [[ $TRAVIS_OS_NAME == "osx" ]]; then |
| 38 | + brew remove --force $(brew list) |
| 39 | + brew cleanup -s |
| 40 | + rm -rf $(brew --cache) |
| 41 | + fi |
| 42 | +- | |
| 43 | + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then |
| 44 | + curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > $HOME/miniconda.sh |
| 45 | + else |
| 46 | + curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh |
| 47 | + fi |
| 48 | +- bash $HOME/miniconda.sh -b -p $HOME/anaconda |
| 49 | +- export PATH="$HOME/anaconda/bin:$PATH" |
| 50 | +- hash -r |
| 51 | +- conda config --set always_yes yes --set changeps1 no |
| 52 | +- conda create -n test_env python=$CONDA_ENV |
| 53 | +- source activate test_env |
10 | 54 | install: |
11 | | - - echo "Build on $TRAVIS_OS_NAME for Python $TRAVIS_PYTHON_VERSION" |
12 | | - - bash .travis/install_python.sh |
13 | | - - export PATH="$HOME/miniconda/bin:$PATH" |
14 | | - - source activate test-env |
15 | | - - pip install coveralls |
16 | | - - conda info |
17 | | - - conda list |
18 | | - - python setup.py install |
19 | | - |
| 55 | +- pip install . -r requirements.txt |
20 | 56 | script: |
21 | | - - nosetests --with-doctest --with-coverage --cover-package=heat |
22 | | - |
23 | | -after_success: |
24 | | - coveralls |
| 57 | +- pytest --cov=heat --cov-report=xml:$(pwd)/coverage.xml -vvv |
| 58 | +after_success: coveralls |
0 commit comments