forked from natverse/nat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravisbuildchildren.sh
16 lines (13 loc) · 999 Bytes
/
travisbuildchildren.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Get last flycircuit build number
BUILD_NUM=$(curl -s 'https://api.travis-ci.org/repos/jefferis/flycircuit/builds' | grep -o '^\[{"id":[0-9]*,' | grep -o '[0-9]' | tr -d '\n')
# Restart last flycircuit build
curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM/restart --header "Authorization: token "$AUTH_TOKEN
# Get last nat.templatebrains build number
BUILD_NUM=$(curl -s 'https://api.travis-ci.org/repos/jefferislab/nat.templatebrains/builds' | grep -o '^\[{"id":[0-9]*,' | grep -o '[0-9]' | tr -d '\n')
# Restart last nat.templatebrains build
curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM/restart --header "Authorization: token "$AUTH_TOKEN
# Get last nat.nblast build number
BUILD_NUM=$(curl -s 'https://api.travis-ci.org/repos/jefferislab/nat.nblast/builds' | grep -o '^\[{"id":[0-9]*,' | grep -o '[0-9]' | tr -d '\n')
# Restart last nat.nblast build
curl -X POST https://api.travis-ci.org/builds/$BUILD_NUM/restart --header "Authorization: token "$AUTH_TOKEN