-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
44 lines (44 loc) · 1.18 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
40
41
42
43
44
language: node_js
node_js: '12'
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install:
- yarn install --frozen-lockfile --ignore-engines
- yarn run setup
jobs:
fast_finish: true
include:
- stage: Prerequisites
name: PR Checks
if: type = pull_request
script: yarn beemo run-script pull-request-checks
node_js: '12'
- stage: Tests
name: Test @ 10
script: yarn test
node_js: '10'
- name: Test @ 12
script: yarn test
node_js: '12'
- stage: Release
name: NPM
if: branch = master
node_js: '12'
before_deploy:
- git config --global user.name ${GITHUB_USER}
- git config --global user.email ${GITHUB_EMAIL}
- git remote set-url origin "https://${GITHUB_TOKEN}@github.com/airbnb/nimbus.git" >
/dev/null 2>&1
- git checkout master
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
deploy:
provider: script
script: yarn run release
skip_cleanup: true
on:
branch: master
notifications:
email: false
cache:
yarn: true