forked from webpack/webpack.js.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (63 loc) · 1.52 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
71
dist: bionic
language: node_js
node_js: "12"
cache:
yarn: true
npm: false
directories:
- .cache
- repositories
stages:
- Lint
- Test
- Build
jobs:
fast_finish: true
include:
- stage: Lint
name: Lint
env: CACHE_TYPE=lint
script:
- yarn lint:js || travis_terminate 1
- yarn lint:markdown || travis_terminate 1
- yarn lint:social || travis_terminate 1
- stage: Lint
name: Proselint
language: python
env: CACHE_TYPE=proselint
python: 3.6
cache:
yarn: false
npm: false
pip: true
directories:
- $HOME/.cache
install: pip install -r requirements.txt
script: cp .proselintrc ~/ && proselint src/content
- stage: Test
name: Cypress
env: CACHE_TYPE=lint
node_js: "10"
install:
- yarn
- yarn cypress install
- yarn cypress verify
script:
- yarn fetch:supporters
- yarn fetch:starter-kits
- yarn cypress:ci || travis_terminate 1
- stage: Build
name: Build
if: branch != master OR type NOT IN (push, cron)
env: CACHE_TYPE=build
script:
- yarn build || travis_terminate 1
- yarn lint:links || travis_terminate 1
- stage: Build
name: Build and Deploy
if: branch = master AND type IN (push, cron)
env: CACHE_TYPE=build
script:
- yarn build || travis_terminate 1
- yarn lint:links || travis_terminate 1
- bash ./src/scripts/deploy.sh