forked from webpack/webpack.js.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (39 loc) · 960 Bytes
/
.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
language: node_js
node_js:
- "10.18.0"
cache:
yarn: true
directories:
- node_modules
- dist
- .cache
stages:
- Build
- Post-build
jobs:
fast_finish: true
include:
- stage: Build
name: Lint and Build
before_install: npm install --global yarn
install: yarn
script:
- yarn lint:js || travis_terminate 1
- yarn lint:markdown || travis_terminate 1
- yarn lint:social || travis_terminate 1
- yarn build || travis_terminate 1
- yarn lint:links || travis_terminate 1
- stage: Build
name: Proselint
language: python
python: 3.6
cache:
pip: true
directories:
- $HOME/.cache
install: pip install -r requirements.txt
script: cp .proselintrc ~/ && proselint src/content
- stage: Post-build
name: Deploy
if: branch = master AND type IN (push, cron)
script: bash ./src/scripts/deploy.sh