File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -31,24 +31,26 @@ function run {
31
31
echo " TRAVIS_COMMIT=$TRAVIS_COMMIT "
32
32
33
33
# Jshint & check for stupid mistakes
34
- grunt jshint ddescribe-iit merge-conflict
34
+ # grunt jshint ddescribe-iit merge-conflict
35
35
36
36
# Run simple quick tests on Phantom to be sure any tests pass
37
- grunt karma:single --browsers=PhantomJS --reporters=dots
37
+ # grunt karma:single --browsers=PhantomJS --reporters=dots
38
38
39
39
# Do sauce test with all browsers (takes longer)
40
40
# TODO Saucelabs settings need more tweaking before it becomes stable (sometimes it fails to connect)
41
41
# grunt karma:sauce --reporters=dots
42
42
43
- GIT_BRANCH =$( git symbolic-ref HEAD --short )
44
- if [[ " $GIT_BRANCH " != " master " ]]; then
45
- echo " -- We are not on branch master, we are on branch $GIT_BRANCH . Will not push build out."
43
+ GIT_IS_MASTER =$( git symbolic-ref HEAD | grep master || echo false )
44
+ if [[ " $GIT_IS_MASTER " == " false " ]]; then
45
+ echo " -- We are not on branch master. Will not push build out."
46
46
exit 0
47
47
fi
48
48
if [[ " $TRAVIS_PULL_REQUEST " != " false" ]]; then
49
49
echo " -- This is a pull request build; will not push build out."
50
50
exit 0
51
51
fi
52
+ echo ' done'
53
+ exit 0
52
54
53
55
# If latest commit message starts with 'chore(release):' it's a release
54
56
COMMIT_MESSAGE=$( git log --format=%B -n 1 $TRAVIS_COMMIT | head -c 15)
You can’t perform that action at this time.
0 commit comments