@@ -8,157 +8,110 @@ os: linux
8
8
language : cpp
9
9
env :
10
10
global :
11
- - PYTHON2_VERSION="2.7.15"
12
- - PYTHON3_VERSION="3.6.7" # "3.7.1" after #29326 is fixed
13
- - PYTHON2_CACHE=$HOME/.ccache/py${PYTHON2_VERSION}
14
- - PYTHON3_CACHE=$HOME/.ccache/py${PYTHON3_VERSION}
15
- cache :
16
- ccache : true
17
- directories :
18
- - ${PYTHON2_CACHE}
19
- - ${PYTHON3_CACHE}
11
+ - PYTHON_VERSION="2.7.15"
20
12
jobs :
21
13
include :
22
14
- stage : " Compile"
23
- name : " Compile V8 (py2)"
15
+ name : " Compile V8"
16
+ cache : ccache
24
17
addons :
25
18
apt :
26
- update : true
27
19
sources :
28
20
- ubuntu-toolchain-r-test
29
21
packages :
30
22
- g++-6
31
23
install : *ccache-setup-steps
32
24
script :
33
- - pyenv global ${PYTHON2_VERSION }
25
+ - pyenv global ${PYTHON_VERSION }
34
26
- ./configure
35
27
- make -j2 -C out V=1 v8
36
28
37
- - name : " Compile V8 (py3)"
29
+ - name : " Compile Node.js"
30
+ cache : ccache
38
31
addons :
39
32
apt :
40
- update : true
41
33
sources :
42
34
- ubuntu-toolchain-r-test
43
35
packages :
44
36
- g++-6
45
37
install : *ccache-setup-steps
46
38
script :
47
- - pyenv global ${PYTHON3_VERSION}
48
- # - ./configure # workaround pending #25878
49
- - python3 configure.py
50
- - make -j2 -C out V=1 v8
51
-
52
- - name : " Compile Node.js (py2)"
53
- addons :
54
- apt :
55
- update : true
56
- sources :
57
- - ubuntu-toolchain-r-test
58
- packages :
59
- - g++-6
60
- install : *ccache-setup-steps
61
- script :
62
- - pyenv global ${PYTHON2_VERSION}
39
+ - pyenv global ${PYTHON_VERSION}
63
40
- ./configure
64
41
- make -j2 V=1
65
- - cp out/Release/node ${PYTHON2_CACHE}
66
- - cp out/Release/cctest ${PYTHON2_CACHE}
67
-
68
- - name : " Compile Node.js (py3)"
69
- addons :
70
- apt :
71
- update : true
72
- sources :
73
- - ubuntu-toolchain-r-test
74
- packages :
75
- - g++-6
76
- install : *ccache-setup-steps
77
- script :
78
- - pyenv global ${PYTHON3_VERSION}
79
- # - ./configure # workaround pending #25878
80
- - python3 configure.py
81
- - make -j2 V=1
82
- - cp out/Release/node ${PYTHON3_CACHE}
83
- - cp out/Release/cctest ${PYTHON3_CACHE}
42
+ - cp out/Release/node /home/travis/.ccache
43
+ - cp out/Release/cctest /home/travis/.ccache
84
44
85
45
- stage : " Tests"
86
- name : " Test JS Suites (py2)"
87
- install :
88
- - mkdir -p out/Release
89
- - cp ${PYTHON2_CACHE}/node out/Release/node
90
- script :
91
- - pyenv global ${PYTHON2_VERSION}
92
- - python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
93
-
94
- - name : " Test JS Suites (py3)"
46
+ name : " Test JS Suites"
47
+ cache : ccache
95
48
install :
96
49
- mkdir -p out/Release
97
- - cp ${PYTHON3_CACHE} /node out/Release/node
50
+ - cp /home/travis/.ccache /node out/Release/node
98
51
script :
99
- - pyenv global ${PYTHON3_VERSION }
52
+ - pyenv global ${PYTHON_VERSION }
100
53
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare default
101
54
102
- - name : " Test C++ Suites (py2)"
55
+ - name : " Test C++ Suites"
56
+ cache : ccache
103
57
install :
104
58
- export CCACHE_NOSTATS=1
105
59
- export CCACHE_SLOPPINESS="file_macro,include_file_mtime,include_file_ctime,time_macros,file_stat_matches"
106
60
- export CC='ccache gcc'
107
61
- export CXX='ccache g++'
108
62
- mkdir -p out/Release
109
- - cp ${PYTHON2_CACHE} /node out/Release/node
63
+ - cp /home/travis/.ccache /node out/Release/node
110
64
- ln -fs out/Release/node node
111
- - cp ${PYTHON2_CACHE} /cctest out/Release/cctest
65
+ - cp /home/travis/.ccache /cctest out/Release/cctest
112
66
- touch config.gypi
113
67
script :
114
- - pyenv global ${PYTHON2_VERSION }
68
+ - pyenv global ${PYTHON_VERSION }
115
69
- out/Release/cctest
116
70
- make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
117
71
- python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api
118
72
119
- - name : " Test C++ Suites (py3)"
120
- install :
121
- - export CCACHE_NOSTATS=1
122
- - export CCACHE_SLOPPINESS="file_macro,include_file_mtime,include_file_ctime,time_macros,file_stat_matches"
123
- - export CC='ccache gcc'
124
- - export CXX='ccache g++'
125
- - mkdir -p out/Release
126
- - cp ${PYTHON3_CACHE}/node out/Release/node
127
- - ln -fs out/Release/node node
128
- - cp ${PYTHON3_CACHE}/cctest out/Release/cctest
129
- - touch config.gypi
130
- script :
131
- - pyenv global ${PYTHON3_VERSION}
132
- - out/Release/cctest
133
- - make -j1 V=1 test/addons/.buildstamp test/js-native-api/.buildstamp test/node-api/.buildstamp
134
- - python tools/test.py -j 2 -p dots --report --mode=release --flaky-tests=dontcare addons js-native-api node-api
135
-
136
- - name : " Linter (py2)"
73
+ - name : " Linter"
137
74
language : node_js
138
75
node_js : " node"
139
76
install :
140
- - pyenv global ${PYTHON2_VERSION }
77
+ - pyenv global ${PYTHON_VERSION }
141
78
- make lint-py-build || true
142
79
script :
143
80
- NODE=$(which node) make lint lint-py
144
81
145
- - name : " Linter (py3)"
82
+ - name : " First commit message adheres to guidelines at <a href=\" https://goo.gl/p2fr5Q\" >https://goo.gl/p2fr5Q</a>"
83
+ if : type = pull_request
84
+ language : node_js
85
+ node_js : " node"
86
+ script :
87
+ - if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
88
+ bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
89
+ fi
90
+
91
+ - name : " Python 3 is EXPERIMENTAL (Py36)"
146
92
language : node_js
147
93
node_js : " node"
148
94
install :
149
- - pyenv global ${PYTHON3_VERSION}
150
- - make lint-py-build || true
95
+ - pyenv global 3.6.7
96
+ - python3.6 -m pip install --upgrade pip
97
+ - make lint-py-build
151
98
script :
152
99
- NODE=$(which node) make lint lint-py
100
+ - python3.6 ./configure.py
101
+ - NODE=$(which node) make test
153
102
154
- - name : " First commit message adheres to guidelines at <a href=\" https://goo.gl/p2fr5Q\" >https://goo.gl/p2fr5Q</a>"
155
- if : type = pull_request
103
+ - name : " Python 3 is EXPERIMENTAL (Py37)"
156
104
language : node_js
157
105
node_js : " node"
106
+ install :
107
+ - pyenv global 3.7.1
108
+ - python3.7 -m pip install --upgrade pip
109
+ - make lint-py-build
158
110
script :
159
- - if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
160
- bash -x tools/lint-pr-commit-message.sh ${TRAVIS_PULL_REQUEST};
161
- fi
111
+ - NODE=$(which node) make lint lint-py
112
+ - python3.7 ./configure.py
113
+ - NODE=$(which node) make test
162
114
163
115
allow_failures :
164
- - name : " Test C++ Suites (py3)" # allow_failures pending #29246
116
+ - name : " Python 3 is EXPERIMENTAL (Py36)"
117
+ - name : " Python 3 is EXPERIMENTAL (Py37)"
0 commit comments