Skip to content
Snippets Groups Projects
Verified Commit 8b88bf1a authored by gabriel klawitter's avatar gabriel klawitter :surfer:
Browse files

ci: add .gitlab-ci.yml

parent a96ad75a
No related merge requests found
Pipeline #51866 failed with stage
in 36 seconds
# .gitlab-ci.yml
# rust-secp256k1
stages:
- test
- build
image: parity/rust-builder:latest
variables:
GIT_STRATEGY: fetch
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
CI_SERVER_NAME: "GitLab CI"
DOCKER_OS: "debian:stretch"
ARCH: "x86_64"
.collect-artifacts: &collect-artifacts
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
when: on_success
expire_in: 7 days
paths:
- artifacts/
.docker-env: &docker-env
tags:
- linux-docker
.compiler_info: &compiler_info
before_script:
- rustup show
- cargo --version
- sccache -s
.build-refs: &build-refs
only:
- master
- schedules
- web
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
.test-refs: &test-refs
only:
- master
- schedules
- web
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
- /^[0-9]+$/
test-linux-stable: &test
stage: test
<<: *test-refs
<<: *docker-env
<<: *compiler_info
variables:
RUST_TOOLCHAIN: stable
RUSTFLAGS: -Cdebug-assertions=y
TARGET: native
script:
- time cargo test --all --release --verbose --locked
- sccache -s
build-linux-release: &build
stage: build
<<: *build-refs
<<: *docker-env
<<: *compiler_info
<<: *collect-artifacts
script:
- time cargo build --release --verbose
- mv ./target/release/libsecp256k1* ./artifacts/.
- sccache -s
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