Skip to content

Commit

Permalink
Start the test container conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
white-gecko committed Jul 3, 2023
1 parent c00ba1c commit 9448fed
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,24 @@ tasks:
cmds:
- docker build --no-cache --build-arg VERSION={{.VERSION}} -t {{.DOCKER_IMAGE}}:{{.VERSION}} .

test:
desc: Run the tests
deps:
- task: test:setup
cmds:
- bundle exec rake test

test:setup:
desc: Setup the test environment
cmds:
- docker run -p 3030:3030 -d stain/jena-fuseki:latest ./fuseki-server --mem /remote
- task: test:setup:endpoint-container
- |
cd test/theme-gem
bundle install
test:
desc: Run the tests
deps:
- task: test:setup
test:setup:endpoint-container:
desc: Start a saprql endpoint for the tests
cmds:
- bundle exec rake test
- docker run --rm -d -p 3030:3030 --name jekyll_rdf_test_endpoint stain/jena-fuseki:latest ./fuseki-server --mem /remote
status:
- '[ "$( docker inspect --format "{{`{{.State.Running}}`}}" jekyll_rdf_test_endpoint )" = "true" ]'

0 comments on commit 9448fed

Please sign in to comment.