Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
b21529d3
Commit
b21529d3
authored
7 years ago
by
Alessandro Vullo
Browse files
Options
Downloads
Plain Diff
Fix merge conflicts.
parents
6e79b4b8
8100d9f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!214
Trigger builds on a selection of downstream repos (incl. rest) using TravisCI API
,
!214
Trigger builds on a selection of downstream repos (incl. rest) using TravisCI API
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+2
-2
2 additions, 2 deletions
.travis.yml
misc-scripts/db/multidb_sql.pl
+4
-3
4 additions, 3 deletions
misc-scripts/db/multidb_sql.pl
with
6 additions
and
5 deletions
.travis.yml
+
2
−
2
View file @
b21529d3
language
:
perl
language
:
"
perl
"
perl
:
-
'
5.14'
...
...
@@ -30,7 +30,7 @@ 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"
# Add build stage to trigger dependent builds, run sequentially after all test jobs
...
...
This diff is collapsed.
Click to expand it.
misc-scripts/db/multidb_sql.pl
+
4
−
3
View file @
b21529d3
...
...
@@ -35,8 +35,8 @@ my ( @hosts, $host, $user, $pass, $port, $expression, $dbpattern, $file, $result
$user
=
'
ensro
'
;
$pass
=
''
;
$port
=
3306
;
@hosts
=
qw (
ens
-
sta
ging1
ens
-
staging2
)
;
$port
=
4519
;
@hosts
=
qw (
mysql
-
ens
-
sta
-
1
)
;
GetOptions
(
"
host|dbhost=s
",
\
$host
,
"
hosts|dbhosts=s
",
\
@hosts
,
...
...
@@ -87,7 +87,8 @@ foreach my $host ( @hosts ) {
close
FH
;
}
my
$db
=
DBI
->
connect
(
$dsn
,
$user
,
$pass
);
my
$db
=
DBI
->
connect
(
$dsn
,
$user
,
$pass
)
or
die
"
Unable to connect to database(s):
$dsn
,
$user
";
my
@dbnames
=
map
{
$_
->
[
0
]
}
@
{
$db
->
selectall_arrayref
(
"
show databases
"
)
};
for
my
$dbname
(
@dbnames
)
{
next
if
(
$dbname
!~
/$dbpattern/
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment