mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-22 03:30:38 +00:00
Added a first attempt at a gitlab-ci.yml file.
This commit is contained in:
parent
f68dff0e52
commit
2a3db4ec7b
41
.gitlab-ci.yml
Normal file
41
.gitlab-ci.yml
Normal file
@ -0,0 +1,41 @@
|
||||
#Adapted from https://users.rust-lang.org/t/my-gitlab-config-docs-tests/16396
|
||||
|
||||
image: 'rust:latest'
|
||||
|
||||
stages:
|
||||
- test
|
||||
- doc
|
||||
- build
|
||||
|
||||
variables:
|
||||
CARGO_HOME: $CI_PROJECT_DIR/cargo
|
||||
APT_CACHE_DIR: $CI_PROJECT_DIR/apt
|
||||
|
||||
before_script:
|
||||
- apt-get update -yq
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y clang libclang-dev cmake build-essential git unzip autoconf libtool
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- rustc --version
|
||||
- cargo --version
|
||||
- cargo test --verbose
|
||||
|
||||
pages:
|
||||
stage: doc
|
||||
script:
|
||||
- cargo doc --no-deps
|
||||
- mv target/doc public
|
||||
# - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- master
|
||||
|
||||
cache:
|
||||
paths:
|
||||
- apt/
|
||||
- cargo/
|
||||
- target/
|
Loading…
Reference in New Issue
Block a user