Skip to content

Commit

Permalink
chore(jenkins): update integration version testing to use Chrome browser
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBurleson committed Mar 3, 2017
1 parent 25aeb0d commit 8c8b931
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/karma-ci.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function(config) {
// Only launch one browser at a time since doing multiple can cause disconnects/issues
concurrency: 1,

browsers: ['Firefox'],
browsers: ['Chrome'],

client: {
// Do not clear the context as this can cause reload failures with Jasmine
Expand Down
15 changes: 10 additions & 5 deletions scripts/test-versions.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# The purpose of this file is to download
# assigned AngularJS source files and test
# them against this build of AngularMaterial.
# them against this build of AngularJS Material.

# This works by pulling in all of the tags
# from angular.js, finding the highest version
# from AngularJS, finding the highest version
# numbers for each branch (e.g. 1.3 => 1.3.X where
# X is the highest patch release). For each
# detected version it will then copy over each
Expand All @@ -22,7 +22,7 @@

# Available Options are: 1.X, 1.X.X, 1.X.X-(beta|rc).X or snapshot
VERSIONS=(1.3 1.4 1.5 1.6 snapshot)
BROWSERS="Firefox"
BROWSERS="Chrome"

#
# DO NOT EDIT PAST THIS LINE
Expand All @@ -38,7 +38,10 @@ fi;

for VERSION in "${VERSIONS[@]}"; do

echo "\n\n--- Testing AngularMaterial against AngularJS (${VERSION}) ---\n"
echo "######################################################################"
echo "####### Jenkins Build #######"
echo "####### Testing AngularJS Material + AngularJS (${VERSION}) #######"
echo "######################################################################"

./scripts/fetch-angular-version.sh $VERSION

Expand All @@ -47,7 +50,9 @@ for VERSION in "${VERSIONS[@]}"; do
node ./node_modules/gulp/bin/gulp.js karma --config=config/karma-ci.conf.js --reporters='dots' --browsers=$BROWSERS
LAST_EXIT_CODE=$?

echo "\n\n--- Finished Testing AngularMaterial against AngularJS (${VERSION}) ---"
echo "######################################################################"
echo "####### Finished: ngM1 + AngularJS (${VERSION}) #######"
echo "######################################################################"

if [ $LAST_EXIT_CODE != "0" ]; then
echo "STATUS: FAILED"
Expand Down

0 comments on commit 8c8b931

Please sign in to comment.