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 update -yqq
#- apt-get install -yqq mingw-w64 #- apt-get install -yqq mingw-w64
# Use cargo to test the project stages:
- test
- build
test:cargo: test:cargo:
stage: test
script: script:
- rustc --version && cargo --version # Print version info for debugging - rustc --version && cargo --version # Print version info for debugging
- cargo test --all --verbose - cargo test --all --verbose
build:linux: build:linux:
stage: build
script: script:
- cargo build --release - cargo build --release
artifacts: artifacts:
@ -21,6 +26,7 @@ build:linux:
- target/release/per - target/release/per
build:windows: build:windows:
stage: build
script: 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 - 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 - apt-get update -yqq