Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b7e4e8

Browse files
committed
update ci
1 parent 0f038cf commit 2b7e4e8

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

‎.travis.yml‎

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,28 @@ cache:
1111
install:
1212
- npm install
1313

14-
before_script:
15-
- npm install codecov
16-
script:
17-
- npm run test:cover
18-
after_script:
19-
- codecov --token=$CODECOV_TOKEN
14+
install:
15+
- npm install
2016

17+
jobs:
18+
include:
2119

22-
before_deploy:
23-
- npm run client:build
24-
deploy:
25-
provider: pages
26-
skip_cleanup: true
27-
github_token: ${GH_TOKEN} # Set in travis-ci.org dashboard
28-
local_dir: public
29-
target-branch: master
30-
repo: $GH_REF
20+
- stage: Unit testing
21+
before_script: npm install codecov
22+
script: npm test:cover
23+
after_script: codecov --token=$CODECOV_TOKEN
3124

32-
env:
33-
global:
34-
- GH_REF=telescopejs/telescopejs.github.io
25+
- stage: E2E testing
26+
script: npm run test:cy:ci $CYPRESS_RECORD_KEY
3527

28+
- stage: deploy
29+
script: npm run client:build
30+
node_js: stable
31+
deploy:
32+
provider: pages
33+
skip_cleanup: true
34+
github_token: ${GH_TOKEN} # Set in travis-ci.org dashboard
35+
local_dir: public
36+
target-branch: master
37+
repo: $GH_REF
38+
env: GH_REF=telescopejs/telescopejs.github.io

0 commit comments

Comments
 (0)