Skip to content

Commit

Permalink
Move tests Dockerfile image to the test directory. Rename docker-comp…
Browse files Browse the repository at this point in the history
…ose.yml to docker-compose.tests.yml.
  • Loading branch information
edmondchuc committed Jul 7, 2021
1 parent d11e714 commit 198c92f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
tests:
docker compose up test-runner --exit-code-from test-runner
docker-compose -f docker-compose.tests.yml up test-runner
docker-compose -f docker-compose.tests.yml down

build:
docker compose build
docker-compose -f docker-compose.tests.yml build

coverage:
docker compose up test-runner-coverage --exit-code-from test-runner-coverage
docker-compose -f docker-compose.tests.yml up test-runner-coverage
docker-compose -f docker-compose.tests.yml down
16 changes: 16 additions & 0 deletions docker-compose.tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
test-runner:
build:
context: .
dockerfile: test/Dockerfile
volumes:
- .:/rdflib
command: ["/rdflib/run_tests.sh"]

test-runner-coverage:
build:
context: .
dockerfile: test/Dockerfile
volumes:
- .:/rdflib
command: ["/rdflib/run_tests_with_coverage_report.sh"]
12 changes: 0 additions & 12 deletions docker-compose.yml

This file was deleted.

File renamed without changes.

0 comments on commit 198c92f

Please sign in to comment.