Skip to content

Commit 729c40a

Browse files
author
Simon Hofmann
committed
(#4) Updated CI configs for pre-releases
1 parent f071ad3 commit 729c40a

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

.travis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,29 @@ install: true
3636

3737
script:
3838
- npm run patch && npm i
39-
- if [[ $TRAVIS_OS_NAME = "windows" ]]; then npm run build:release:win; else npm run build:release; fi
39+
- npm run build:release
4040
- cd test
4141
- npm cit
4242
- cd window-integration-tests
4343
- npm cit
4444
- cd ../..
4545

46+
stages:
47+
- test
48+
- name: deploy
49+
if: (branch = develop) OR (tag IS present)
50+
4651
before_deploy:
4752
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
4853

4954
deploy:
5055
- provider: script
51-
skip_cleanup: true
52-
script: npm publish --access public
56+
skip_cleanup: false
57+
script: bash ./.build/pre-release.sh
58+
on:
59+
branch: develop
60+
- provider: script
61+
skip_cleanup: false
62+
script: bash ./.build/release.sh
5363
on:
5464
tags: true
55-
node_js: '12'
56-

appveyor.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
image: Visual Studio 2017
44

55
# Test against these versions of Io.js and Node.js.
6-
environment:
7-
matrix:
8-
# node.js
9-
- nodejs_version: "10"
6+
nodejs_version: "12"
107

118
cache:
129
- node_modules
@@ -25,7 +22,7 @@ install:
2522
- ps: '"//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII'
2623
- npm whoami
2724
- npm run patch && npm install
28-
- npm run build:release:win
25+
- npm run build:release
2926

3027
test_script:
3128
# Output useful info for debugging.
@@ -42,5 +39,15 @@ test_script:
4239
on_success:
4340
- IF defined APPVEYOR_REPO_TAG_NAME npm publish
4441

42+
deploy:
43+
- provider: script
44+
path: ./.build/release.ps1
45+
on:
46+
APPVEYOR_REPO_TAG: true
47+
- provider: script
48+
path: ./.build/pre-release.ps1
49+
on:
50+
branch: develop
51+
4552
build: off
4653
version: "{build}"

0 commit comments

Comments
 (0)