Skip to content

Commit

Permalink
Add after success hook for deploy in test-fooguard project
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Desvé committed Dec 16, 2013
1 parent 7985a45 commit 18ea5b9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ node_js:

script:
- ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

after_success:
- deploy_test.sh
12 changes: 12 additions & 0 deletions deploy_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
if [ "$TRAVIS_BRANCH" == "master" ]
then
echo "Deploy test-footguard"
cd ..
git clone https://github.com/mazerte/test-footguard.git && cd test-footguard
rm -r ./* -f
ln -s ../generator-footguard node_modules/generator-footguard
yo footguard
git add --all && git commit -m "ref to build $TRAVIS_BUILD_ID"
else
echo "Do nothing"
fi

0 comments on commit 18ea5b9

Please sign in to comment.