File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ matrix:
3939 env :
4040 - JOBQUEUE="osx"
4141 - CONDA_VERSION="3.7"
42+ - os : windows
43+ language : sh
44+ python : " 3.7"
45+ env :
46+ - JOBQUEUE="win37"
4247 - python : 3.7
4348 env : JOBQUEUE="slurm"
4449 - language : go
@@ -48,9 +53,11 @@ matrix:
4853 - INSTALL_TYPE="develop"
4954 - python : 3.7
5055 env : INSTALL_DEPENDS="pip==10.0.1 setuptools==30.3.0"
56+
5157 allow_failures :
5258 - python : 3.7
5359 env : INSTALL_DEPENDS="pip==10.0.1 setuptools==30.3.0"
60+ - os : windows
5461
5562
5663before_install :
Original file line number Diff line number Diff line change 1+ # local build environment
2+
3+ function travis_before_install {
4+ choco install python --version 3.7;
5+ export PATH=" /c/Python37:/c/Python37/Scripts:$PATH " ;
6+ python -m pip install --upgrade pip;
7+ pip install --upgrade pip;
8+ virtualenv $HOME /venv;
9+ source $HOME /venv/Scripts/activate;
10+ travis_retry python -m pip install --upgrade $INSTALL_DEPENDS
11+ }
12+
13+ function travis_install {
14+ if [ " $CHECK_TYPE " = " test" ]; then
15+ echo " Hello from pip"
16+ pip install $PIP_ARGS .
17+ # Verify import with bare install
18+ python -c ' import pydra; print(pydra.__version__)'
19+ fi
20+ }
21+
22+ function travis_before_script {
23+ if [ " $CHECK_TYPE " = " test" ]; then
24+ # Install test dependencies using similar methods...
25+ pip install " .[test]"
26+ fi
27+ }
28+
29+ function travis_script {
30+ if [ " $CHECK_TYPE " = " test" ]; then
31+ pytest -vs -n auto --cov pydra --cov-config .coveragerc --cov-report xml:cov.xml --doctest-modules pydra
32+ fi
33+ }
34+
35+ function travis_after_script {
36+ codecov --file cov.xml --flags unittests -e TRAVIS_JOB_NUMBER
37+ }
You can’t perform that action at this time.
0 commit comments