Skip to content

Commit

Permalink
rebuild nat.flybrains as part of travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferis committed Jul 28, 2014
1 parent 1a9bc47 commit 43d5543
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
^.*\.Rproj$
^\.Rproj\.user$
.travis.yml
^\.travis\.yml$
travisbuildchildren.sh
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ env:
- WARNINGS_ARE_ERRORS=1
- _R_CHECK_FORCE_SUGGESTS_=0
after_success:
- chmod 755 ./travisbuildchildren.sh
- ./travisbuildchildren.sh
6 changes: 6 additions & 0 deletions travisbuildchildren.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Get last nat.flybrains build number
BUILD_NUM=$(curl -s 'https://api.travis-ci.org/repos/jefferislab/nat.flybrains/builds' | grep -o '^\[{"id":[0-9]*,' | grep -o '[0-9]' | tr -d '\n')
# Restart last nat.flybrains build
curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM/restart --header "Authorization: token "$AUTH_TOKEN

0 comments on commit 43d5543

Please sign in to comment.