Moved all the pre-build stuff to a new public docker image.
This commit is contained in:
parent
dc8e879eda
commit
9f88892fae
@ -1,20 +1,20 @@
|
|||||||
#Adapted from https://users.rust-lang.org/t/my-gitlab-config-docs-tests/16396
|
#Adapted from https://users.rust-lang.org/t/my-gitlab-config-docs-tests/16396
|
||||||
|
|
||||||
image: 'rust:latest'
|
image: 'sigp/lighthouse:latest'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- doc
|
- doc
|
||||||
- build
|
|
||||||
|
|
||||||
variables:
|
#variables:
|
||||||
CARGO_HOME: $CI_PROJECT_DIR/cargo
|
# CARGO_HOME: $CI_PROJECT_DIR/cargo
|
||||||
APT_CACHE_DIR: $CI_PROJECT_DIR/apt
|
# APT_CACHE_DIR: $CI_PROJECT_DIR/apt
|
||||||
|
|
||||||
before_script:
|
#before_script:
|
||||||
- apt-get update -yq
|
# - 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
|
# - apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y clang libclang-dev cmake build-essential git unzip autoconf libtool
|
||||||
- git clone https://github.com/google/protobuf.git && cd protobuf && ./autogen.sh && ./configure && make && make install && ldconfig && make clean && cd .. && rm -r protobuf
|
# - git clone https://github.com/google/protobuf.git && cd protobuf && ./autogen.sh && ./configure && make && make install && ldconfig
|
||||||
|
# - rustup component add rustfmt
|
||||||
|
|
||||||
check-fmt:
|
check-fmt:
|
||||||
stage: test
|
stage: test
|
||||||
@ -45,6 +45,5 @@ pages:
|
|||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- apt/
|
- /cargocache
|
||||||
- cargo/
|
|
||||||
- target/
|
- target/
|
||||||
|
Loading…
Reference in New Issue
Block a user