Run sandbox tests in GitLab CI
This commit is contained in:
parent
44299b2998
commit
880e66e8ed
|
@ -31,6 +31,8 @@ test:stable: &test
|
|||
stage: test
|
||||
services:
|
||||
- postgres
|
||||
- name: registry.gitlab.com/pastebin.run/sandbox/master
|
||||
alias: sandbox
|
||||
variables:
|
||||
POSTGRES_DB: db
|
||||
POSTGRES_USER: user
|
||||
|
@ -38,7 +40,7 @@ test:stable: &test
|
|||
image: rust:latest
|
||||
script:
|
||||
- *init
|
||||
- DATABASE_URL=postgresql://user:password@postgres/db cargo test --verbose --features=database_tests
|
||||
- DATABASE_URL=postgresql://user:password@postgres/db SANDBOX_URL=http://sandbox:8888 cargo test --verbose --features=database_tests,sandbox_tests
|
||||
- *clean_cargo
|
||||
cache:
|
||||
key: ${CI_JOB_NAME}
|
||||
|
|
Loading…
Reference in New Issue
Block a user