chore(travis): set up travis_after_all to deploy once
This commit is contained in:
parent
7bf436fe8a
commit
466be0eb7e
13
.travis.yml
13
.travis.yml
@ -10,6 +10,18 @@ notifications:
|
|||||||
email: false
|
email: false
|
||||||
before_install:
|
before_install:
|
||||||
- npm i -g npm@^2.0.0
|
- npm i -g npm@^2.0.0
|
||||||
|
before_script:
|
||||||
|
- curl -Lo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py
|
||||||
|
after_success:
|
||||||
|
- python travis_after_all.py
|
||||||
|
- export $(cat .to_export_back)
|
||||||
|
after_failure:
|
||||||
|
- python travis_after_all.py
|
||||||
|
- export $(cat .to_export_back)
|
||||||
|
before_deploy:
|
||||||
|
- rm -f travis_after_all.py .to_export_back
|
||||||
|
after_script:
|
||||||
|
- echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
|
||||||
deploy:
|
deploy:
|
||||||
provider: npm
|
provider: npm
|
||||||
email: stephan@boennemann.me
|
email: stephan@boennemann.me
|
||||||
@ -19,3 +31,4 @@ deploy:
|
|||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
repo: boennemann/semantic-release
|
repo: boennemann/semantic-release
|
||||||
|
condition: "$BUILD_LEADER = YES"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user