File tree 2 files changed +24
-3
lines changed
2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 9
9
- name : Linux Release
10
10
if : tag IS present
11
11
script :
12
- - travis_wait 60 ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh"
12
+ - travis_wait 60 ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh && ./ci/build-test.sh "
13
13
- ./ci/release-image/push.sh
14
14
- name : Linux ARM64 Release
15
15
if : tag IS present
16
16
script :
17
- - ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh"
17
+ - ./ci/image/run.sh "yarn && yarn vscode && ci/release.sh && ./ci/build-test.sh "
18
18
- ./ci/release-image/push.sh
19
19
arch : arm64
20
20
- name : MacOS Release
21
21
if : tag IS present
22
22
os : osx
23
23
language : node_js
24
24
node_js : 12
25
- script : yarn && yarn vscode && travis_wait 60 ci/release.sh
25
+ script : yarn && yarn vscode && travis_wait 60 ci/release.sh && ./ci/build-test.sh
26
26
27
27
before_deploy :
28
28
- echo "$JSON_KEY" | base64 --decode > ./ci/key.json
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # build-test.bash -- Make sure the build worked.
3
+ # This is to make sure we don't have Node version errors or any other
4
+ # compilation-related errors.
5
+
6
+ set -euo pipefail
7
+
8
+ function main() {
9
+ cd " $( dirname " ${0} " ) /.." || exit 1
10
+
11
+ local output
12
+ output=$( node ./build/out/node/entry.js --list-extensions 2>&1 )
13
+ if echo " $output " | grep ' was compiled against a different Node.js version' ; then
14
+ echo " $output "
15
+ exit 1
16
+ else
17
+ echo " Build ran successfully"
18
+ fi
19
+ }
20
+
21
+ main " $@ "
You can’t perform that action at this time.
0 commit comments