Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
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
TeDomum
Matrix
Commits
a33c0748
Commit
a33c0748
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Use a PORT_BASE environment variable to configure the ports that sytest uses
parent
f2807260
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jenkins.sh
+4
-12
4 additions, 12 deletions
jenkins.sh
with
4 additions
and
12 deletions
jenkins.sh
+
4
−
12
View file @
a33c0748
...
...
@@ -42,22 +42,14 @@ export PERL5LIB PERL_MB_OPT PERL_MM_OPT
./install-deps.pl
for
port
in
800
{
1,2
}
;
do
if
test
-e
localhost-
$port
/database.yaml
;
then
cat
>
localhost-
$port
/database.yaml
<<
EOF
name: sqlite3
args:
database: ':memory:'
EOF
fi
done
:
${
PORT_BASE
:
=8000
}
echo
>
&2
"Running sytest with SQLite3"
;
./run-tests.pl
-O
tap
--synapse-directory
..
--all
>
results.tap
./run-tests.pl
-O
tap
--synapse-directory
..
--all
--port-base
$PORT_BASE
>
results.tap
RUN_POSTGRES
=
""
for
port
in
800
{
1,2
}
;
do
for
port
in
$((
$PORT_BASE
+
1
))
$((
$PORT_BASE
+
2
))
;
do
if
psql synapse_jenkins_
$port
<<<
""
;
then
RUN_POSTGRES
=
$RUN_POSTGRES
:
$port
cat
>
localhost-
$port
/database.yaml
<<
EOF
...
...
@@ -69,7 +61,7 @@ EOF
done
# Run if both postgresql databases exist
if
test
$RUN_POSTGRES
=
":
8001:8002
"
;
then
if
test
$RUN_POSTGRES
=
":
$((
$PORT_BASE
+
1
))
:
$((
$PORT_BASE
+
2
))
"
;
then
echo
>
&2
"Running sytest with PostgreSQL"
;
pip
install
psycopg2
./run-tests.pl
-O
tap
--synapse-directory
..
--all
>
results.tap
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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