@@ -10,29 +10,51 @@ phases:
10
10
# run linters
11
11
- TOX_PARALLEL_NO_SPINNER=1
12
12
- PY_COLORS=0
13
+ - start_time=`date +%s`
13
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`
14
18
- tox -e sphinx
19
+ - ./ci-scripts/displaytime.sh 'sphinx' $start_time
15
20
16
21
# run unit tests
22
+ - start_time=`date +%s`
17
23
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
18
24
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
19
25
tox -e py36,py27 --parallel all -- tests/unit
26
+ - ./ci-scripts/displaytime.sh 'py36,py27 unit ' $start_time
20
27
21
28
# local mode tests
22
29
- |
23
30
if has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"; then
31
+ start_time=`date +%s`
24
32
IGNORE_COVERAGE=- tox -e py36 -- tests/integ -m local_mode --durations 50
33
+ ./ci-scripts/displaytime.sh 'py36 local mode ' $start_time
34
+
35
+ start_time=`date +%s`
25
36
IGNORE_COVERAGE=- tox -e py27 -- tests/integ -m local_mode --durations 50
37
+ ./ci-scripts/displaytime.sh 'py27 local mode ' $start_time
38
+
26
39
else
27
40
echo "skipping integration tests"
28
41
fi
29
42
30
43
# run integration tests
31
44
- |
32
45
if has-matching-changes "tests/" "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"; then
46
+ start_time=`date +%s`
33
47
python3 -u ci-scripts/queue_build.py
48
+ ./ci-scripts/displaytime.sh 'Build queue' $start_time
49
+
50
+ start_time=`date +%s`
34
51
IGNORE_COVERAGE=- tox -e py36 -- tests/integ -m "not local_mode" -n 48 --reruns 3 --reruns-delay 5 --durations 50
52
+ ./ci-scripts/displaytime.sh 'py36 tests/integ ' $start_time
53
+
54
+ start_time=`date +%s`
35
55
IGNORE_COVERAGE=- tox -e py27 -- tests/integ -m "not local_mode" -n 48 --reruns 3 --reruns-delay 5 --durations 50
56
+ ./ci-scripts/displaytime.sh 'py27 tests/integ ' $start_time
57
+
36
58
else
37
59
echo "skipping integration tests"
38
60
fi
@@ -41,7 +63,10 @@ phases:
41
63
- |
42
64
if has-matching-changes "src/*.py" "setup.py" "setup.cfg" "buildspec.yml"; then
43
65
echo "running notebook test"
66
+ start_time=`date +%s`
44
67
./tests/scripts/run-notebook-test.sh
68
+ ./ci-scripts/displaytime.sh 'notebook test ' $start_time
69
+
45
70
else
46
71
echo "skipping notebook test"
47
72
fi
0 commit comments