Unverified Commit ba5df8e7 authored by Ralf Zerres's avatar Ralf Zerres
Browse files

.gitlab-ci.yml: update CI/CD pipeline



* temporary disable redox build
  - missing rustc that handles edition = 2021
Signed-off-by: default avatarRalf Zerres <ralf.zerres@networkx.de>
parent 1f2318c3
Pipeline #10334 passed with stages
in 2 minutes and 35 seconds
image: "redoxos/redoxer"
variables:
CARGO_HOME: $CI_PROJECT_DIR/cargo
before_script:
- apt-get update -qq
- apt-get install -qq build-essential curl git
cargo_cache: "${CI_PROJECT_DIR}/.cache/"
#dces_guide_root: "/var/www/doc/dces-guide"
dces_guide_root: "public/dces-guide"
build:linux:
stage: build
script:
- cargo build
- make tests
.cache: &cargo_install_root
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- cargo/
- target/
- "${PWD}/.cargo"
stages:
- build
- test
build:redox:
build_linux:
stage: build
image: rust:latest
only:
- main
- develop
before_script:
- echo "Prepare Environment:"
- export CARGO_HOME="$PWD/.cargo"
- echo $CARGO_HOME
- export PATH="$PWD/.cargo/bin:$PATH"
- echo "$RUSTC_WRAPPER"
- rustc --verbose --version
- cargo --verbose --version
<<: *cargo_install_root
script:
- redoxer build --verbose
cache:
- cargo build
artifacts:
paths:
- cargo/
- target/
test:linux:
stage: test
dependencies:
- build:linux
script:
- cargo test
\ No newline at end of file
- .cargo/
###
# temporary disabled, since we need redoxer with rustc >= 1.60
###
# build_redox:
# stage: build
# image: "redoxos/redoxer:latest"
# only:
# - main
# - develop
# before_script:
# - echo "Prepare Environment:"
# - export CARGO_HOME="$PWD/.cargo"
# - echo $CARGO_HOME
# - export PATH="$PWD/.cargo/bin:$PATH"
# - echo "$RUSTC_WRAPPER"
# - apt-get update -qq
# - apt-get install -qq build-essential curl git rustup
# - rustc --verbose --version
# - cargo --verbose --version
# <<: *cargo_install_root
# script:
# - cargo build
# artifacts:
# paths:
# - .cargo/
test:
stage: test
image: rust:latest
dependencies:
- build_linux
only:
- main
- develop
script:
- cargo test
artifacts:
#paths:
# - "$dces_guide_root/$language"
expire_in: 1 weeks
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment