freechat/.gitlab-ci.yml

33 lines
432 B
YAML

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