Skip to content

Commit b35de98

Browse files
authored
apply travis only for master branch (#4163)
* apply travis ci only for master branch * fix bug
1 parent 1a42041 commit b35de98

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

.travis.yml

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,12 @@ cache:
1010
- repositories
1111

1212
stages:
13-
- Lint
14-
- Test
1513
- Build
1614

1715
jobs:
1816
fast_finish: true
1917

2018
include:
21-
- stage: Lint
22-
name: Lint
23-
env: CACHE_TYPE=lint
24-
script:
25-
- yarn lint:js || travis_terminate 1
26-
- yarn lint:markdown || travis_terminate 1
27-
- yarn lint:social || travis_terminate 1
28-
29-
- stage: Lint
30-
name: Proselint
31-
language: python
32-
env: CACHE_TYPE=proselint
33-
python: 3.6
34-
cache:
35-
yarn: false
36-
npm: false
37-
pip: true
38-
directories:
39-
- $HOME/.cache
40-
install: pip install -r requirements.txt
41-
script: cp .proselintrc ~/ && proselint src/content
42-
43-
- stage: Test
44-
name: Cypress
45-
env: CACHE_TYPE=lint
46-
node_js: "10"
47-
install:
48-
- yarn
49-
- yarn cypress install
50-
- yarn cypress verify
51-
script:
52-
- yarn fetch:supporters
53-
- yarn fetch:starter-kits
54-
- yarn cypress:ci || travis_terminate 1
55-
56-
- stage: Build
57-
name: Build
58-
if: branch != master OR type NOT IN (push, cron)
59-
env: CACHE_TYPE=build
60-
script:
61-
- yarn build || travis_terminate 1
62-
- yarn lint:links || travis_terminate 1
63-
6419
- stage: Build
6520
name: Build and Deploy
6621
if: branch = master AND type IN (push, cron)

0 commit comments

Comments
 (0)