-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some small changes to make the test suite behave with SalsaCI were required: contrib/docker/Makefile: - The "run" target now runs docker-compose detached. - The "tests" target does not need to run interactively. contrib/docker/scripts/run-tests: - We need to run only the CI tests here, otherwise producesReferenceDb times out. .gitmodules: - Switch from SSH to HTTPS for submodule cloning. SSH connections were not working on my tests.
- Loading branch information
1 parent
719a18f
commit de9fa18
Showing
4 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
|
||
build: | ||
image: docker:latest | ||
stage: build | ||
services: | ||
- docker:dind | ||
before_script: | ||
- apk add docker-compose make | ||
script: | ||
- cd contrib/docker | ||
- make build | ||
- make update-db | ||
- make run | ||
- make tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "testdata"] | ||
path = testdata | ||
url = git@salsa.debian.org:qa/debsources-testdata.git | ||
url = https://salsa.debian.org/qa/debsources-testdata.git | ||
[submodule "archvsync"] | ||
path = archvsync | ||
url = https://ftp-master.debian.org/git/archvsync.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
/opt/db-init | ||
nosetests3 -v /opt/debsources/lib/debsources/tests/ | ||
|
||
cd /opt/debsources | ||
make test-travis |