mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-22 03:30:38 +00:00
8de7706500
- Made it so that the gitlab submodule config is per job, so that the cargo-fmt job does not pull all the ef_tests.
41 lines
929 B
YAML
41 lines
929 B
YAML
#Adapted from https://users.rust-lang.org/t/my-gitlab-config-docs-tests/16396
|
|
|
|
image: 'sigp/lighthouse:latest'
|
|
|
|
stages:
|
|
- test
|
|
- document
|
|
|
|
variables:
|
|
CARGO_HOME: /cache/cargocache
|
|
|
|
check-fmt:
|
|
stage: test
|
|
script:
|
|
- cargo build --manifest-path protos/Cargo.toml
|
|
- cargo fmt --all -- --check
|
|
|
|
test-dev:
|
|
stage: test
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: normal
|
|
script:
|
|
- cargo test --verbose --all
|
|
|
|
test-release:
|
|
stage: test
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: normal
|
|
script:
|
|
- cargo test --verbose --all --release
|
|
|
|
documentation:
|
|
stage: document
|
|
script:
|
|
- cargo doc --no-deps
|
|
- aws s3 sync target/doc/ s3://lighthouse-docs.sigmaprime.io/ --exclude '.lock' --delete
|
|
# Configure the below when we want to have a default page (and update S3 bucket index).
|
|
# - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html
|
|
only:
|
|
- master
|