Skip to content

Commit 0e44a65

Browse files
authored
Merge pull request #358 from mupdt/travis-checkout-branch-pls
Fixes Travis CI build. It was not checking out a branch.
2 parents 5d6aba9 + b7fad46 commit 0e44a65

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.travis.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,9 @@ sudo: false
44
# Want 'bash' but 'c' works:
55
language: c
66

7-
branches:
8-
only:
9-
- master
10-
- /^release\//
11-
127
script:
13-
- git checkout $(
14-
git branch --contains HEAD
15-
| cut -c3-
16-
| grep -E '^(master$|release)'
17-
| head -1
18-
)
8+
# NOTE: we have to make sure we're on a branch (rather than on a detached HEAD) because tests rely on it.
9+
- git checkout -b travis-ci-dummy-branch-name
1910
- GIT_COMMITTER_NAME=Bob
2011
GIT_COMMITTER_EMAIL=bob@blob.net
2112
GIT_AUTHOR_NAME='Bob Blob'

0 commit comments

Comments
 (0)