Skip to content

Commit fbd7a2f

Browse files
committed
Rework pipeline for better speed and make proselint a deployment blocker
1 parent 8332fe3 commit fbd7a2f

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

.travis.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,9 @@ jobs:
2929
- yarn lint:js
3030
- yarn lint:markdown
3131
- yarn lint:social
32+
- yarn build
3233

33-
- stage: build
34-
name: Build
35-
before_script: source ./src/scripts/env.sh
36-
script: yarn build
37-
38-
- stage: post-build
39-
name: Deploy
40-
if: branch = master
41-
script: bash ./src/scripts/deploy.sh
42-
43-
- stage: post-build
44-
name: Link check
45-
script: yarn linkcheck
46-
47-
- stage: post-build
34+
- stage: lint
4835
name: Proselint
4936
language: python
5037
python: 3.6
@@ -54,3 +41,12 @@ jobs:
5441
- $HOME/.cache
5542
install: pip install -r requirements.txt
5643
script: cp .proselintrc ~/ && proselint src/content
44+
45+
- stage: post-build
46+
name: Deploy
47+
if: branch = master
48+
script: bash ./src/scripts/deploy.sh
49+
50+
- stage: post-build
51+
name: Link check
52+
script: yarn linkcheck

src/scripts/env.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)