per/.gitlab-ci.yml

30 lines
729 B
YAML
Raw Normal View History

2019-03-26 15:18:42 +01:00
image: "rust:latest"
# Optional: Install a C compiler, cmake and git into the container.
# You will often need this when you (or any of your dependencies) depends on C code.
#before_script:
#- apt-get update -yqq
#- apt-get install -yqq mingw-w64
# Use cargo to test the project
test:cargo:
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo test --all --verbose
2019-03-26 15:25:53 +01:00
2019-03-26 15:19:00 +01:00
build:linux:
2019-03-26 15:18:42 +01:00
script:
- cargo build --release
artifacts:
paths:
2019-03-26 15:25:53 +01:00
- target/release/per
build:windows:
script:
- apt-get update -yqq
- apt-get install -yqq mingw-w64
- cargo build --release --target=x86_64-pc-windows-gnu
artifacts:
paths:
- target/x86_64-pc-windows-gnu/release/per.exe