An unfinished raytracer/pathtracer/bidirectional pathtracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pathtracer/.gitlab-ci.yml

41 lines
716 B

# Official language image.
image: 'rust:latest'
stages:
- lint
- test
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
APT_CACHE_DIR: $CI_PROJECT_DIR/apt
lint:fmt:
# Nightly image for formatting configuration
image: 'rustlang/rust:nightly'
stage: lint
before_script:
- rustup component add rustfmt
script:
- cargo fmt --version
- cargo fmt --all -- --check
lint:clippy:
stage: lint
before_script:
- rustup component add clippy
script:
- cargo clippy --version
- cargo clippy -- --deny warnings
test:cargo-test:
stage: test
script:
- rustc --version
- cargo --version
- cargo test --all --verbose
cache:
paths:
- apt/
- cargo/
- target/