forked from OfficeDev/script-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (50 loc) · 2.72 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:
- 10
branches:
only:
- master
- beta
- production
cache: yarn
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
- secure: HexcEzdxAUC8YRm/qckg678+VYwbgn1yNdgtCtGDHX3ojgoQBQuMVMLFgflQE7YgaiZLU/4srND+IEDeLsVUjRTsI2uKPjxQup46sXiiTbo3r3Asc1Y99O8DsmnXwHKn9O2MZRfUwO5FpsMoq7ERrvrVC/uk5U4+CsPMapz633fHq6/NzdCMYG9J5BI+NuirxJPXOkw1rb+22hsCBGiGeYCEaEmgZppSy5IX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