@cryptotaxi247 / kubo / commits / 482a492ab

travis-ci: make test_all_commits

After losing jenkins, it's been difficult to test all commits manually. This commit adds a Makefile target that makes travis do it. Unfortunately, this is way too slow. It takes longer than the allotted 10min. After asking the travis people what to do, someone suggested making sure that each commit is pushed to github independently. This makes travis run CI on every single commit in the PR, and gives us nice status indicators on each one (so we know which ones did not pass). This approach means that we need to push a branch to the repo for each commit in the PR-- otherwise travis may cancel its run if it detects that the branch is no longer there. We could automate this with a bot that essentially does: for each PR: git fetch the PR branch push a branch per commit: <branch>-<commit> for each closed PR: delete all branches with pattern <branch>-<commit>

Juan Batiz-Benet committed May 10, 2015 at 07:53 UTC 482a492ab0ce797fb6ab987441b643924d475adf
1 file changed +8
Makefile
+8
@@ -61,3 +61,11 @@ test_all_commits:
61 @echo "WARNING: this will 'git rebase --exec'."
62 @test/bin/continueyn
63 GIT_EDITOR=true git rebase -i --exec "make test" origin/master
64 +
65 +test_all_commits_travis:
66 + # these are needed because travis.
67 + # we don't use this yet because it takes way too long.
68 + git config --global user.email "nemo@ipfs.io"
69 + git config --global user.name "IPFS BOT"
70 + git fetch origin master:master
71 + GIT_EDITOR=true git rebase -i --exec "make test" master