-
-
Save guioconnor/66a04a2c4292b8dcba22808fbc7fd68e to your computer and use it in GitHub Desktop.
Revisions
-
tgrrtt revised this gist
Nov 17, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -63,6 +63,7 @@ after_success: before_deploy: # check that build passed successfully # add the \ afterwards to tell travis it's part of the same command thanks @markhuge - test $TRAVIS_TEST_RESULT = 0 \ && gulp build \ && cd dist \ -
tgrrtt revised this gist
Nov 17, 2014 . 1 changed file with 9 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -62,12 +62,15 @@ after_success: && git push before_deploy: # check that build passed successfully - test $TRAVIS_TEST_RESULT = 0 \ && gulp build \ && cd dist \ && npm install --prod \ && cd $TRAVIS_BUILD_DIR \ && tar -zcvf amber-storm-$TRAVIS_BRANCH.tar.gz dist \ && export PRODBUILDCOMPLETE=true ## Deployment options #################### -
tgrrtt created this gist
Nov 16, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,90 @@ # Set up notification options notifications: email: recipients: - one@example.com - other@example.com # change is when the repo status goes from pass to fail or vice versa on_success: change on_failure: always # specify language language: node_js # specify language options node_js: - '0.10' - '0.11' # configure which branches to run branches: # whitelist only: - master - /^deploy-.*$/ # regex ok # blacklist except: - dontrunme - test # declare your environment variables env: # global will stay the same across all matrix possibilities (will not create additional combinations to run) global: - SECRET_TOKEN=k399dkkgklsk # matrix variables will create a new build for each specified variable matrix: - DB=production - DB=testing # enable services (stuff like DBs, MQs) services: - mongodb # will start mongodb - rabbitmq # will start rabbitmq-server ## begin build steps #################### before_install: - sudo apt-get update -qq install: - wget https://github.com/n1k0/casperjs/archive/1.0.2.tar.gz -O /tmp/casper.tar.gz - tar -xvf /tmp/casper.tar.gz - export PATH=$PATH:$PWD/casperjs-1.0.2/bin/ before_script: - bower install after_success: - test $TRAVIS_PULL_REQUEST = false && git push before_deploy: - test $TRAVIS_TEST_RESULT = 0 # check that build passed successfully && gulp build && cd dist && npm install --prod && cd $TRAVIS_BUILD_DIR && tar -zcvf amber-storm-$TRAVIS_BRANCH.tar.gz dist && export PRODBUILDCOMPLETE=true ## Deployment options #################### deploy: # specify the deployment provider provider: releases # options for provider api_key: secure: securekeyhere file: myrepo-$TRAVIS_BRANCH.tar.gz # conditions for deployment on: condition: $PRODBUILDCOMPLETE = true repo: myname/myrepo all_branches: true tags: true after_deploy: - ssh git@mysite.biz "./deploy.sh $TRAVIS_BRANCH"