Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit c9c1fe0

Browse files
ci(deploy): Semantic release with deploy
1 parent 5254826 commit c9c1fe0

File tree

5 files changed

+167
-4199
lines changed

5 files changed

+167
-4199
lines changed

.travis.yml

+16-11
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@ sudo: false
22

33
language: node_js
44

5-
cache:
6-
yarn: true
7-
directories:
8-
- node_modules
9-
105
notifications:
116
email: false
127

8+
env:
9+
global:
10+
- CC_TEST_REPORTER_ID=117e949a384eb983682b80e9675d929fb8799dc2d1877d811614fdb1d06e35e7
11+
1312
node_js:
1413
- 9
1514
- 8
1615

17-
before_install:
18-
- npm i -g npm
19-
- npm i -g yarn
20-
- yarn
16+
install:
17+
- travis_retry yarn install
2118

2219
before_script:
23-
- npm prune
20+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
21+
- chmod +x ./cc-test-reporter
22+
- ./cc-test-reporter before-build
2423

2524
script:
2625
- node --version
@@ -30,7 +29,13 @@ script:
3029

3130
after_success:
3231
- npm run report-coverage
33-
- npm run travis-deploy-once "npm run semantic-release"
32+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
33+
34+
deploy:
35+
provider: script
36+
skip_cleanup: true
37+
script:
38+
- npm install -g travis-deploy-once semantic-release && travis-deploy-once "semantic-release"
3439

3540
branches:
3641
except:

appveyor.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ build: false
22

33
clone_depth: 1
44

5-
cache:
6-
- node_modules
7-
- '%LOCALAPPDATA%/Yarn'
8-
95
environment:
106
matrix:
117
- nodejs_version: 9
@@ -16,12 +12,7 @@ matrix:
1612

1713
install:
1814
- ps: Install-Product node $env:nodejs_version
19-
- npm i -g npm
20-
- npm i -g yarn
21-
- yarn
22-
23-
before_test:
24-
- npm prune
15+
- yarn install
2516

2617
test_script:
2718
- node --version

0 commit comments

Comments
 (0)