-
Notifications
You must be signed in to change notification settings - Fork 77
/
.travis.yml
70 lines (70 loc) · 1.93 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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
before_script:
- yarn run build
jobs:
fast_finish: true
include:
- stage: Checks
name: Pull Request
if: type = pull_request
script: yarn run check:pr
node_js: '12'
- name: Build Sizes
if: type = pull_request
script:
- yarn run build:sizes
- yarn run check:build
node_js: '12'
- name: Happo (Dark)
if: type = pull_request OR branch = master
script: yarn run check:happo:dark
node_js: '12'
- name: Happo (Light)
if: type = pull_request OR branch = master
script: yarn run check:happo:light
node_js: '12'
- stage: Tests
name: Test @ 10
script: yarn run jest:coverage -w 4 && yarn run lint:errors
node_js: '10'
- name: Test @ 12
script: yarn run jest:coverage -w 4 && yarn run lint:errors
node_js: '12'
- stage: Release
name: Storybook
script: skip
node_js: '12'
if: branch = master
before_deploy:
- yarn run build:storybook
deploy:
provider: script
script: yarn run release:storybook
skip_cleanup: true
on:
branch: master
- name: NPM
script: skip
node_js: '12'
if: branch = master
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
- 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/lunar.git" >
/dev/null 2>&1
- git checkout master
deploy:
provider: script
script: yarn run release
skip_cleanup: true
on:
branch: master
cache:
yarn: true