-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
44 lines (38 loc) · 2 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
sudo: false
matrix:
include:
- os: linux
language: python
name: python 3.10
python:
- 3.10
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
install:
- pip install "six~=1.13" paramiko zmq
- pip install codecov
- python setup.py install
- export QT_API=pyqt5
- if [[ $TRAVIS_OS_NAME == linux ]]; then pip install pre-commit; 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
# run code quality checks (skip them on Mac OS because Python 3 is not
# available there)
- if [[ $TRAVIS_OS_NAME == linux ]]; then pre-commit run --all-files; fi
after_success:
- codecov
cache:
directories:
- $HOME/.cache/pre-commit