-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·39 lines (39 loc) · 1.09 KB
/
.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
34
35
36
37
38
39
dist: trusty
language: node_js
notifications:
email: false
node_js: lts/*
stages:
- test
jobs:
include:
- stage: test
script:
- set -e
- npm run format:check
- npm run lint
- npm run test
- npm run build:all
before_deploy:
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
- git remote add -f pub https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
- git fetch pub $TRAVIS_BRANCH
- git checkout $TRAVIS_BRANCH
- npm run pack
deploy:
- provider: script
skip_cleanup: true
keep_history: true
script: npm run release
on:
tags: false
all_branches: true
condition: '$TRAVIS_BRANCH =~ ^(master)$'
- provider: script
skip_cleanup: true
keep_history: true
script: RELEASE_TAG=$TRAVIS_BRANCH npm run release:tag
on:
tags: false
all_branches: true
condition: '$TRAVIS_BRANCH =~ ^(next)$'