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