This repository was archived by the owner on Dec 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,61 +2,17 @@ language: node_js
22
33jobs :
44 include :
5- - os : linux
6- node_js : 8
7- env : [TEST=1]
8- - os : linux
9- node_js : 10
10- env : [TEST=1]
11- - os : linux
12- node_js : node
13- env : [TEST=1, TEST_ELECTRON=1, BUILD_CMD=prebuild, BUILD_GROUP=linux-x64]
14- addons :
15- apt :
16- packages :
17- - xvfb
18- before_script :
19- - export DISPLAY=':99.0'
20- - Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
21- - os : osx
22- node_js : 8
23- env : [TEST=1]
24- - os : osx
25- node_js : 10
26- env : [TEST=1]
27- - os : osx
28- node_js : node
29- env : [TEST=1, TEST_ELECTRON=1, BUILD_CMD=prebuild, BUILD_GROUP=darwin-x64]
305 - name : arm
316 os : linux
327 node_js : node
338 env : [BUILD_CMD=prebuild-arm, BUILD_GROUP=arm, NPM_CONFIG_IGNORE_SCRIPTS=1]
34- if : tag is present
359 - name : alpine
3610 os : linux
3711 node_js : node
3812 env : [BUILD_CMD=prebuild-alpine, BUILD_GROUP=alpine, NPM_CONFIG_IGNORE_SCRIPTS=1]
39- if : tag is present
4013
4114script :
42- - if [[ ! -z "$TEST" ]]; then npm run test; fi
43- - if [[ ! -z "$TEST_ELECTRON" ]]; then npm run test-electron; fi
44-
45- after_success :
46- - if [[ ! -z "$TEST" ]]; then npm run coverage; fi
47-
48- before_deploy :
49- - export ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$BUILD_GROUP.tar.gz"
15+ - export ARCHIVE_NAME="test-$BUILD_GROUP.tar.gz"
5016 - npm run $BUILD_CMD
5117 - file prebuilds/*/*
5218 - tar -zcvf "$ARCHIVE_NAME" -C prebuilds .
53-
54- deploy :
55- provider : releases
56- draft : false
57- api_key : " $PREBUILD_TOKEN"
58- file : " $ARCHIVE_NAME"
59- skip_cleanup : true
60- on :
61- tags : true
62- condition : " ! -z $BUILD_CMD"
You can’t perform that action at this time.
0 commit comments