flesh/.gitlab-ci.yml

40 lines
680 B
YAML

default:
image: rust:latest
compile-with-posix-features:
stage: build
script:
- cargo build
compile-without-posix-features:
stage: build
script:
- cargo build --no-default-features
compile-implicit-load:
stage: build
script:
- cargo build -F implicit-load
compile-release:
stage: build
script:
- cargo build --release
artifacts:
paths:
- target/release/flesh
only:
variables:
- $CI_COMMIT_TAG =~ /^v\d+.\d+.\d+-?.*$/
except:
- branches
unit-tests:
stage: test
script:
- cargo test
userlib-tests:
stage: test
script:
- cargo run --no-default-features snippets/userlib.f snippets/userlib-tests.f