Raid_Manager/.gitlab-ci.yml

45 lines
1020 B
YAML

stages:
- build_frontend
- build_backend
flutter-web:
stage: build_frontend
image: cirrusci/flutter
script:
- cd app
- flutter build web
artifacts:
expire_in: 2 days
paths:
- "./app/build/web/"
rust-latest:
stage: build_backend
image: rust:latest
script:
- cd lib
- mkdir ./webroot
- cp -r ../app/build/web/* ./webroot
- cargo build -r --features static
- mv ./target/release/raid_manager ./target/release/raid_manager_static
- cargo build -r
- cargo test -r
- cp ./target/release/raid_manager* ..
artifacts:
expire_in: 2 days
paths:
- "./raid_manager_static"
- "./raid_manager"
rust-nightly:
stage: build_backend
image: rustlang/rust:nightly
script:
- mkdir ./lib/webroot
- cp -r ./app/build/web/* ./lib/webroot
- cargo build -r --manifest-path=lib/Cargo.toml --features static
- cargo build -r --manifest-path=lib/Cargo.toml
- cargo test -r --manifest-path=lib/Cargo.toml
allow_failure: true