Skip to content

Commit 88fef20

Browse files
committed
fix(travis): simplify build steps
speed up build by installing dependencies only once
1 parent 8b5d6a6 commit 88fef20

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.travis.yml

+8-15
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
language: node_js
22

3-
install:
4-
- yarn
5-
63
cache: yarn
74

85
node_js:
@@ -18,24 +15,20 @@ stages:
1815

1916
jobs:
2017
include:
21-
- stage: test
22-
install:
23-
- yarn install
24-
script:
25-
- yarn test:prod
18+
- stage: install
19+
script: yarn install
20+
skip_cleanup: true
21+
22+
- stage: test
23+
script: yarn test:prod
24+
skip_cleanup: true
2625

2726
- stage: build
28-
install:
29-
- yarn install
30-
script:
31-
- yarn build
27+
script: yarn build
3228

3329
- stage: release
34-
# Advanced: optionally overwrite your default `script` step to skip the tests
35-
# script: skip
3630
deploy:
3731
provider: script
3832
skip_cleanup: true
3933
script:
40-
- yarn build
4134
- yarn semantic-release

0 commit comments

Comments
 (0)