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:
39
39
env :
40
40
- JOBQUEUE="osx"
41
41
- CONDA_VERSION="3.7"
42
+ - os : windows
43
+ language : sh
44
+ python : " 3.7"
45
+ env :
46
+ - JOBQUEUE="win37"
42
47
- python : 3.7
43
48
env : JOBQUEUE="slurm"
44
49
- language : go
@@ -48,9 +53,11 @@ matrix:
48
53
- INSTALL_TYPE="develop"
49
54
- python : 3.7
50
55
env : INSTALL_DEPENDS="pip==10.0.1 setuptools==30.3.0"
56
+
51
57
allow_failures :
52
58
- python : 3.7
53
59
env : INSTALL_DEPENDS="pip==10.0.1 setuptools==30.3.0"
60
+ - os : windows
54
61
55
62
56
63
before_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