Skip to content

Commit 6f91e24

Browse files
committed
feat: introduce travis build stages
1 parent 1133aac commit 6f91e24

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ before_script:
99
script:
1010
- npm run build:prod
1111
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test; fi
12+
jobs:
13+
include:
14+
- stage: build
15+
script:
16+
- npm run build:prod
17+
- stage: test
18+
script:
19+
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run test; fi
20+
- stage: deploy
21+
deploy:
22+
on:
23+
branch: master
24+
provider: script
25+
skip_cleanup: true
26+
script:
27+
npx semantic-release
1228
branches:
1329
except:
1430
- "/^v\\d+\\.\\d+\\.\\d+$/"

0 commit comments

Comments
 (0)