Skip to content

Commit

Permalink
Build: Only run Sauce with Secure Vars
Browse files Browse the repository at this point in the history
Minor formatting fixes for the saucelabs task
  • Loading branch information
nschonni committed Oct 2, 2013
1 parent b473569 commit cbef6fc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -12,7 +12,7 @@ before_install:
- ./run-first

script:
- npm test && grunt saucelabs && ./travis.sh
- npm test && ./travis.sh

notifications:
irc:
Expand Down
23 changes: 13 additions & 10 deletions Gruntfile.coffee
Expand Up @@ -329,16 +329,19 @@ module.exports = (grunt) ->
csv: "src/i18n/i18n.csv"
src: "src/js/i18n/formvalid/*.js"

'saucelabs-mocha':
all:
options:
urls: ["http://127.0.0.1:8000/dist/demo/carousel/carousel-en.html"]
tunnelTimeout: 5
build: process.env.TRAVIS_BUILD_NUMBER
concurrency: 3
browsers: grunt.file.readJSON("browsers.json")
testname: "WET-BOEW Travis Build #{process.env.TRAVIS_BUILD_NUMBER}"
tags: [process.env.TRAVIS_BRANCH, process.env.TRAVIS_COMMIT]
"saucelabs-mocha":
all:
options:
urls: ["http://127.0.0.1:8000/dist/demo/carousel/carousel-en.html"]
tunnelTimeout: 5
build: process.env.TRAVIS_BUILD_NUMBER
concurrency: 3
browsers: grunt.file.readJSON "browsers.json"
testname: "WET-BOEW Travis Build #{process.env.TRAVIS_BUILD_NUMBER}"
tags: [
process.env.TRAVIS_BRANCH,
process.env.TRAVIS_COMMIT
]

"gh-pages":
options:
Expand Down
6 changes: 5 additions & 1 deletion travis.sh
Expand Up @@ -8,7 +8,11 @@ function error_exit
exit 1
}

if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_REPO_SLUG" == "wet-boew/wet-boew" ] && [ "$TRAVIS_BRANCH" == "v4.0" ]; then
if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ] && [ "$TRAVIS_REPO_SLUG" == "wet-boew/wet-boew" ]; then
grunt saucelabs || error_exit "Error running Sauce tests";
fi

if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_REPO_SLUG" == "wet-boew/wet-boew" ] && [ "$TRAVIS_BRANCH" == "v4.0" ]; then

#Set git user
git config --global user.email "wet.boew.bot@gmail.com"
Expand Down

0 comments on commit cbef6fc

Please sign in to comment.