From 466be0eb7e2a96024c7677bf169e32a22d65bec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Thu, 5 Feb 2015 23:26:06 +0100 Subject: [PATCH] chore(travis): set up travis_after_all to deploy once --- .travis.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index af021e60..74746a46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,19 @@ cache: notifications: email: false 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: provider: npm email: stephan@boennemann.me @@ -19,3 +31,4 @@ deploy: on: branch: master repo: boennemann/semantic-release + condition: "$BUILD_LEADER = YES"