forked from OfficeDev/script-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (50 loc) · 1.38 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
language: node_js
node_js:
- lts/*
branches:
only:
- master
- beta
- production
cache:
npm: false
yarn: false
install:
- yarn install --frozen-lockfile
- yarn pre-ci || travis_terminate 1
- yarn postinstall
- git --no-pager diff HEAD --exit-code || travis_terminate 1 # This makes sure that someone ran "yarn install" after merging their PR, and that the postinstall doesn't produce any diffs, which are annoying/confusing
before_script:
- yarn prettier
matrix:
include:
- name: 'Common Pipeline'
env:
- PACKAGE_LOCATION=packages/common
- PACKAGE_NAME=common
- SITE_NAME=script-lab-react-storybook
- name: 'Editor Pipeline'
env:
- PACKAGE_LOCATION=packages/editor
- PACKAGE_NAME=editor
- SITE_NAME=script-lab-react
- name: 'Runner Pipeline'
env:
- PACKAGE_LOCATION=packages/runner
- PACKAGE_NAME=runner
- SITE_NAME=script-lab-react-runner
- name: 'Server Pipeline'
env:
- PACKAGE_LOCATION=packages/server
- PACKAGE_NAME=server
- SITE_NAME=script-lab-react-server
script:
- cd $PACKAGE_LOCATION
- yarn lint || travis_terminate 1
- yarn test || travis_terminate 1
- yarn build || travis_terminate 1
- cd $TRAVIS_BUILD_DIR
- if [[ "$TRAVIS_PULL_REQUEST" == false ]]; then yarn deploy; fi
env:
global:
- HTTPS=true