Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
92a8e68b
Commit
92a8e68b
authored
3 years ago
by
David Robertson
Browse files
Options
Downloads
Patches
Plain Diff
Missed another ci->.ci
Should have been more systematic with my grepping.
parent
cb5976eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.ci/scripts/test_synapse_port_db.sh
+9
-9
9 additions, 9 deletions
.ci/scripts/test_synapse_port_db.sh
with
9 additions
and
9 deletions
.ci/scripts/test_synapse_port_db.sh
+
9
−
9
View file @
92a8e68b
...
...
@@ -20,22 +20,22 @@ pip install -e .
echo
"--- Generate the signing key"
# Generate the server's signing key.
python
-m
synapse.app.homeserver
--generate-keys
-c
ci/sqlite-config.yaml
python
-m
synapse.app.homeserver
--generate-keys
-c
.
ci/sqlite-config.yaml
echo
"--- Prepare test database"
# Make sure the SQLite3 database is using the latest schema and has no pending background update.
scripts-dev/update_database
--database-config
ci/sqlite-config.yaml
scripts-dev/update_database
--database-config
.
ci/sqlite-config.yaml
# Create the PostgreSQL database.
.
/
ci/scripts/postgres_exec.py
"CREATE DATABASE synapse"
.ci/scripts/postgres_exec.py
"CREATE DATABASE synapse"
echo
"+++ Run synapse_port_db against test database"
coverage run scripts/synapse_port_db
--sqlite-database
ci/test_db.db
--postgres-config
ci/postgres-config.yaml
coverage run scripts/synapse_port_db
--sqlite-database
.
ci/test_db.db
--postgres-config
.
ci/postgres-config.yaml
# We should be able to run twice against the same database.
echo
"+++ Run synapse_port_db a second time"
coverage run scripts/synapse_port_db
--sqlite-database
ci/test_db.db
--postgres-config
ci/postgres-config.yaml
coverage run scripts/synapse_port_db
--sqlite-database
.
ci/test_db.db
--postgres-config
.
ci/postgres-config.yaml
#####
...
...
@@ -44,14 +44,14 @@ coverage run scripts/synapse_port_db --sqlite-database ci/test_db.db --postgres-
echo
"--- Prepare empty SQLite database"
# we do this by deleting the sqlite db, and then doing the same again.
rm
ci/test_db.db
rm
.
ci/test_db.db
scripts-dev/update_database
--database-config
ci/sqlite-config.yaml
scripts-dev/update_database
--database-config
.
ci/sqlite-config.yaml
# re-create the PostgreSQL database.
.
/
ci/scripts/postgres_exec.py
\
.ci/scripts/postgres_exec.py
\
"DROP DATABASE synapse"
\
"CREATE DATABASE synapse"
echo
"+++ Run synapse_port_db against empty database"
coverage run scripts/synapse_port_db
--sqlite-database
ci/test_db.db
--postgres-config
ci/postgres-config.yaml
coverage run scripts/synapse_port_db
--sqlite-database
.
ci/test_db.db
--postgres-config
.
ci/postgres-config.yaml
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