freechat/.gitlab-ci.yml
2020-08-10 13:45:47 -07:00

34 lines
501 B
YAML

image: shockrah/freechat:0.3
variables:
CARGO_HOME: $CI_PROJECT_DIR/.cargo
build-release:
stage: build
only:
- testing
cache:
paths:
- target/
before_script:
- cd server/
script:
- cargo build
- diesel setup --database-url $DATABASE_URL
api-test:
stage: test
needs: ["build-release"]
only:
- testing
script:
- cd server/
- cargo run -- -s > server.log&
- export fc_id=$!
- cd tests/
- bash ./main.sh body
- kill ${fc_id}