Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-test
Commits
14858610
Commit
14858610
authored
Sep 21, 2017
by
Alessandro Vullo
Browse files
Use more powerlful token, use spinner while waiting for approval.
parent
c032d64e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
28 deletions
+12
-28
.travis.yml
.travis.yml
+6
-6
travisci/trigger-dependent-build.sh
travisci/trigger-dependent-build.sh
+6
-22
No files found.
.travis.yml
View file @
14858610
language
:
perl
perl
:
-
'
5.14'
-
'
5.12'
-
'
5.10'
-
'
5.14'
-
'
5.12'
-
'
5.10'
env
:
matrix
:
...
...
@@ -11,7 +10,7 @@ env:
-
COVERALLS=false DB=mysql
-
COVERALLS=false DB=sqlite
global
:
secure
:
V4m6EvyHDDTbT/+NqteOGQbnHvrPUoVyXW02fLi/7/WckRroLqj4dmTHBEmQFdGDfYRS+/WkEijU2qNAe1A0Hlh79eWPvSZsiCTjEgt+0quNN+lYJGwKzLI27xM9YAXNCgVgpSsRLDcluf+bNHECKdpJPFL2TvgNa5vbbesxOHiUw8i4g/C66h4e8D2OnUdvNePfuSoqGpK2Q+lotQyQzI2nVjDsLtNc9VlGKB/EOKF9w5Ei/RYnxli58qG2gKLN8ut4oO8MAzCNfcLzfJFrqa43znW9HIhzw8JH2SQsBb6q1bXkLHB3Wu23w3G0bCgOVmrFzC/bxTdTOZBxGSAJjbEnMOjDqtNeMli5suRdo/5CvYQ42zVf9d0UxyX/AWuVicjKi6q4rujd/z55hm+Dyd5UBHjWg5QoeGqNYaU29hkLOTo9P4wKEvjdOF0ccU6lTad0I5nDSzRWfYAHcJWajE+Ms3TZ/dDZ2PfkPRLshEtufx++eEnKB1YMJaLi8e7A10RI9A8YZqerlk/Amo3C6aljCl4qA5G5ZBhuTGDgXXPxZC0xKQ72Myz/iKs3jrjbz2s3JFVQD0AamVBIE7HpprSGEc0uSXhSAuhtBINawcWod4ut/FbxP/de821BkRnEppt2n5bVdd530H88gQPiIcZ2ZlPf6tc7mXWGTFOoOeE
=
secure
:
IbEJR4ZkrgxYUJyQ0JxBY2NtBnJMvxKaRvVQaYutxLRW2qry3eFMJHjp3fFjmNRTK8vEobRODK2pAuXyTcYh/iThOwgXq4oS9cVBNc5/Vr5OsQgMqu/GHqDRW2WvTI0niSKZA5dq0yaDEShatwmEvLfz8berwN8QJM6XbVmT0FGwJBq9QG45t5hRbJVXsTgVGZad3nUjGhMoDD7iOkfApou40Tw6z2bFpItbTpmM8SOadOT26dPNaVA6Cn4+HO9kTXdFBOuq9/VoVe1s2ObsnVLf4jJqYcdHUg9L+VTp4xzfXIsvrzvPbAQm5Xj5JjjWqr43yEv6fOYQYtKdYhes1g3+wPrGTmcCjRm3SSp39RWpk9Po4o67kKmu1mG+gRSJwY5Xzj86TkO726cGhxK8v3Nra0h9rRAp+oeWJHAFVCYmeo5scZnrnEllLNc42pxsDXvcFS2nBwVcF5di82rSIT4RdgBN7C6wMBAzanUGibwJYuieBtJ5i4/TWu5wOQyohWv02OThs2YMsFry2gFVJKExbzmJMSYXos9AqjdP8iua/PFVTqNB4XeHQSYK3xxttYxASS0ZNb358OfnZhwx2Yvg1HNE7U0ShKkshw/KpoH132TP7C4usVSoxA28jnM0PvljRLRfWuBI62bsJr68b7X3m83eTZTaBKoge6l/f1w
=
sudo
:
false
...
...
@@ -31,7 +30,6 @@ install:
-
cp travisci/MultiTestDB.conf.travisci.mysql modules/t/MultiTestDB.conf.mysql
-
cp travisci/MultiTestDB.conf.travisci.SQLite modules/t/MultiTestDB.conf.SQLite
-
mysql -u root -h localhost -e 'GRANT ALL PRIVILEGES ON *.* TO "travis"@"%"'
script
:
"
./travisci/harness.sh"
jobs
:
...
...
@@ -56,3 +54,5 @@ notifications:
email
:
on_success
:
always
on_failure
:
always
slack
:
secure
:
gTcWzQsVHKPxRJ1u0U2l2+QVujmG1uFW44kAO3l46V5Im5uLTOLeM20ykk6ox4kaPHLs5ky7NGzcJmTDLaHBKjI4Sa34l4tJd0lhkv+hKj9TSv5pDDCdUX8v869Nm8LqJKh26HqvVcN7eHFRatLD/tfYvvkaP1rLLhwLLdr7czQ=
travisci/trigger-dependent-build.sh
View file @
14858610
#!/bin/bash
# This script lives in each of the upstream repos. Add this to .travis.yml to
# run after each successful build (assuming that the script is in the root of
# the repo):
# after_success:
# - ./trigger-dependent-build
#
# There are three variables to set - `$auth_token`, `$endpoint`, and
# `$repo_id` - each is described below.
#
# An authorization token generated by running:
# gem install travis
# travis login
# travis token
#
####################
# Global Variables #
####################
# The authorisation token
auth_token
=
MdFujR8JsfCR9uJdw7jrPg
# The Travis API endpoint. .com and .org are the commercial and free versions,
# respectively; enterprise users will have their own hostname.
endpoint
=
https://api.travis-ci.org
...
...
@@ -55,6 +36,7 @@ function env_var {
sed
's/{"env_var":{"id":"\([^"]*\)",.*/\1/'
}
# print a spinner and terminate it
sp
=
"/-
\|
"
sc
=
0
spin
()
{
...
...
@@ -72,7 +54,7 @@ if [ "${TRAVIS_BRANCH}" != "master" ] || [ "${TRAVIS_PULL_REQUEST}" != "false" ]
fi
# The list of downstream dependent repos
dep_repos
=(
"
avullo
%2Fensembl"
)
dep_repos
=(
"
Ensembl
%2Fensembl"
)
for
dep_repo
in
"
${
dep_repos
[@]
}
"
;
do
# Get the ID of the dependent repo
...
...
@@ -101,14 +83,16 @@ for dep_repo in "${dep_repos[@]}"; do
# Wait until request is approved or max amount of time has passed
i
=
0
echo
"Waiting for build request
$dep_repo_master_build_request_id
to be approved"
build_request_approved
=
""
until
travis_api /repo/
$dep_repo
/request/
$dep_repo_master_build_request_id
|
grep
-q
'"result": "approved"'
;
do
echo
"Waiting for build request
$dep_repo_master_build_request_id
to be approved"
spin
sleep
5
true
$((
i++
))
if
[
$i
-eq
100
]
then
echo
"
Request
$dep_repo_master_build_request_id
not approved,
reached max waiting time ... ABORT"
echo
" reached max waiting time ... ABORT"
exit
1
fi
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment