Skip to content

Commit 202a7e6

Browse files
committed
Slim down CI stages
1 parent 66cc359 commit 202a7e6

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.travis.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,14 @@ install: npm config set progress=false && npm i --no-audit
66
cache:
77
directories:
88
- node_modules
9-
stages:
10-
- name: check-pr
11-
if: type = pull_request
129
jobs:
1310
include:
1411

15-
- stage: check-pr
16-
node_js: lts/*
17-
script: ./scripts/check-pr.sh
18-
env: Checks contributing guidelines before testing pull requests
19-
20-
- stage: lint
12+
- stage: check
2113
node_js: node
22-
script: npm run lint
14+
script:
15+
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then ./scripts/check-pr.sh; fi
16+
- npm run lint
2317
env: Checks the sources with TSLint
2418

2519
- stage: test
@@ -30,6 +24,7 @@ jobs:
3024
script: npm run clean && node bin/asc -v && npm test
3125
env: Tests the sources on latest stable node.js
3226
- node_js: lts/*
27+
if: branch = master AND type = push
3328
script:
3429
- npm run clean
3530
- cd $TRAVIS_BUILD_DIR/tests/allocators/arena && npm run build && cd .. && npm test arena

0 commit comments

Comments
 (0)