forked from populse/soma-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (58 loc) · 2.73 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
sudo: false
matrix:
include:
- os: osx
language: generic
name: python 3.7
- os: linux
language: python
name: python 2.7
python:
- 2.7
- os: linux
language: python
name: python 3.5
python:
- 3.5
- os: linux
language: python
name: python 3.7
python:
- 3.7
before_install:
- echo "TRAVIS_PYTHON_VERSION:" "$TRAVIS_PYTHON_VERSION"
# osx deps - we don't need a brew install which is very unstable and often
# broken. The system comes with python 3.7 which is perfect for us.
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew uninstall --ignore-dependencies python; fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install [email protected]; fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version; fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/[email protected]/bin:$PATH"; ln -s `which python3` bin/python; ln -s `which pip3` bin/pip; export PATH="$PWD/bin:$PATH"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ln -s `which python3` bin/python; ln -s `which pip3` bin/pip; export PATH="$PWD/bin:$PATH"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then sudo apt-get install -y pandoc graphviz; pip install sphinx sphinx-gallery pandoc nbsphinx "PyQt5<5.13"; fi
install:
- pip install "six~=1.13" paramiko zmq
- if [ ${TRAVIS_PYTHON_VERSION} == "2.7" ]; then pip install subprocess32; fi
- pip install codecov
- python setup.py install
- export QT_API=pyqt5
# build doc; set .nojekyll otherwise github.io doesn't copy dirs starting
# with '_' (such as '_static')
- if [[ "$TRAVIS_OS_NAME" = "linux" && "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then cd doc && make html && touch build/html/.nojekyll && cd ..; fi
- if [[ -n "$GITHUB_ACCESS_TOKEN" ]]; then export PUSH_DOC_TO_GH_PAGES=yes; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cat /proc/cpuinfo && free; fi
script:
#- coverage run -m soma_workflow.test --isolated --resources local-server --debug & sleep 120 && echo "\n******** client log:" && cat /tmp/swf_test_log && echo "\n************* server log:" && tail -2000 /tmp/swf_isol*/logs/log_workflow_engine*
- coverage run -m soma_workflow.test --isolated --resources local-server,localhost --debug
after_success:
- codecov
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_ACCESS_TOKEN
target-branch: gh-pages
local-dir: doc/build/html
on:
branch: master
condition: $PUSH_DOC_TO_GH_PAGES == yes && $TRAVIS_OS_NAME == linux && $TRAVIS_PYTHON_VERSION == 3.5