Skip to content

Commit

Permalink
Start ancillary services before integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Aug 29, 2024
1 parent 5fa34e8 commit 8a98d46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
run: just build
- name: Pull other images
run: just pull
- name: Start ancillary services
run: just start-ancillary
- name: Run unit tests
run: just test-unit
- name: Run integration tests
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ compose_file := 'docker-compose_just.yml'
dev: start attach

# Start the ChRIS backend in development mode.
start: start-dependencies migrate up
start: start-ancillary migrate up

# Start services (without running database migrations).
up: (docker-compose '--profile=cube up -d')
Expand Down Expand Up @@ -40,10 +40,10 @@ test-all: test-unit test-integration
test-unit: (run 'python manage.py test --force-color --exclude-tag integration')

# Run integration tests.
test-integration: (run 'python manage.py test --force-color --tag integration')
test-integration: start-ancillary (run 'python manage.py test --force-color --tag integration')

# Start dependency services.
start-dependencies: (docker-compose 'up -d')
start-ancillary: (docker-compose 'up -d')

# Stop services.
down: (docker-compose '--profile=cube --profile=tools down')
Expand Down

0 comments on commit 8a98d46

Please sign in to comment.