1
1
version : 0.2
2
2
3
3
phases :
4
- pre_build :
5
- commands :
6
- - start-dockerd
7
-
8
4
build :
9
5
commands :
10
- # run linters
11
- - TOX_PARALLEL_NO_SPINNER=1
12
- - PY_COLORS=0
13
- - start_time=`date +%s`
14
- - tox -e flake8,pylint,twine,black-check --parallel all
15
- - ./ci-scripts/displaytime.sh 'flake8,pylint,twine,black-check' $start_time
16
-
17
- - start_time=`date +%s`
18
- - tox -e sphinx
19
- - ./ci-scripts/displaytime.sh 'sphinx' $start_time
20
-
21
- # run unit tests
22
- - start_time=`date +%s`
23
- - AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
24
- AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
25
- tox -e py36,py27 --parallel all -- tests/unit
26
- - ./ci-scripts/displaytime.sh 'py36,py27 unit' $start_time
27
-
28
6
- IGNORE_COVERAGE=-
29
7
30
- # local mode tests
31
- - start_time=`date +%s`
32
- - |
33
- if has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"; then
34
- tox -e py36 -- tests/integ -m local_mode --durations 50
35
- fi
36
- - ./ci-scripts/displaytime.sh 'py36 local mode' $start_time
37
-
38
- - start_time=`date +%s`
39
- - |
40
- if has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"; then
41
- tox -e py27 -- tests/integ -m local_mode --durations 50
42
- fi
43
- - ./ci-scripts/displaytime.sh 'py27 local mode' $start_time
44
-
45
8
# run integration tests
46
9
- start_time=`date +%s`
47
10
- |
@@ -57,22 +20,6 @@ phases:
57
20
fi
58
21
- ./ci-scripts/displaytime.sh 'py36 tests/integ' $start_time
59
22
60
- - start_time=`date +%s`
61
- - |
62
- if has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"; then
63
- tox -e py27 -- tests/integ -m "not local_mode" -n 48 --reruns 3 --reruns-delay 5 --durations 50
64
- fi
65
- - ./ci-scripts/displaytime.sh 'py27 tests/integ' $start_time
66
-
67
- # run notebook test
68
- - echo "running notebook test"
69
- - start_time=`date +%s`
70
- - |
71
- if has-matching-changes "src/*.py" "setup.py" "setup.cfg"; then
72
- ./tests/scripts/run-notebook-test.sh
73
- fi
74
- - ./ci-scripts/displaytime.sh 'notebook test' $start_time
75
-
76
23
post_build :
77
24
finally :
78
25
- |
0 commit comments