Update .gitlab-ci.yml

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-03-26 15:35:48 +00:00
parent 847c34f31b
commit f247a8facf
1 changed files with 7 additions and 1 deletions

View File

@ -6,14 +6,19 @@ image: "rust:latest"
#- apt-get update -yqq
#- apt-get install -yqq mingw-w64
# Use cargo to test the project
stages:
- test
- build
test:cargo:
stage: test
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo test --all --verbose
build:linux:
stage: build
script:
- cargo build --release
artifacts:
@ -21,6 +26,7 @@ build:linux:
- target/release/per
build:windows:
stage: build
script:
- mkdir .cargo && echo -e "[target.x86_64-pc-windows-gnu]\nlinker = \"x86_64-w64-mingw32-gcc\"\nar = \"x86_64-w64-mingw32-gcc-ar\"" > .cargo/config
- apt-get update -yqq