Skip to content

Commit 1cb384e

Browse files
committed
Attempt to fix travis-ci build (Grit needs the master branch present)
Add: * Comments in the .travis.yml explaining some of the before_scripts * Additional before_scripts for acquiring the master branch
1 parent 32650cd commit 1cb384e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ bundler_args: --without test darwin
99
notifications:
1010
email: false
1111

12-
before_script: git pull -q --depth=1000000
12+
before_script:
13+
# Tests are ran against the repos early history
14+
- git pull -q --depth=1000000
15+
16+
# Grit's Commit.find_all(...) requires the master branch to be present
17+
- git remote add master git://github.com/kevinjalbert/git_statistics.git
18+
- git fetch master
19+
- git checkout master
20+
- git checkout -
1321

1422
script: bundle exec rspec spec

0 commit comments

Comments
 (0)