forked from tc39/ecma262
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (30 loc) · 831 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
env:
global:
- secure: "UCSm2OZkCtH8EPSPjp8fujOyQrtHtPJi8DDdOyCSkUunSw9H+HiONwuh+J1Of77B9OUC1HTWE51tW75nsnaQik4GihXB+eah7ow3RLM14LoLoUz+PA84W8sDuuCbm37Kqtf4vnWKlAUhDeUZNyhGyIezdB22UaqWWir9KGdp4AE="
workspaces:
use:
- build
stages:
- install-build
- upload
matrix:
include:
- stage: install-build
workspaces:
create:
name: build
paths:
- ./
node_js: "lts/*"
env: BUILD=true
script:
- 'npm run build-master'
- 'if [ "${TRAVIS_BRANCH-}" = "master" ]; then ./scripts/auto-deploy.sh; fi;'
- stage: upload
node_js: "lts/*"
env: UPLOAD=true
script:
- 'node scripts/insert_snapshot_warning'
- 'node scripts/publish-preview'
if: type = pull_request AND repo = tc39/ecma262
language: node_js