Newer
Older
include:
- project: "picodata/devops/ci-templates"
file: "all.yml"
ref: 0.1.1
stages:
- test
- lint
- utility
variables:
GIT_STRATEGY: clone
CI_IMAGE_REPOSITORY: docker-public.binary.picodata.io
CI_IMAGE: "${CI_IMAGE_REPOSITORY}/${CI_PROJECT_NAME}:0.1.0"
DOCKER_AUTH_CONFIG: $DOCKER_AUTH_RO
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
default:
image: $CI_IMAGE
.base:
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
variables:
# variables for rust cache
CARGO_HOME: $CI_PROJECT_DIR/.cargo
SCCACHE_DIR: $CI_PROJECT_DIR/.cache/sccache
RUSTC_WRAPPER: sccache
image:
name: $CI_IMAGE
pull_policy: [always, if-not-present]
tags:
- docker
needs: []
interruptible: true
int-test:
stage: "test"
extends: .base
script:
- make int-test
rust-lint:
extends: .base
stage: lint
script:
- make rust-lint
rust-fmt:
stage: lint
extends: .base
script:
- cargo fmt --check
publish-dry-run:
stage: utility
extends: .base
script:
- make publish-dry-run
publish:
stage: utility
extends: .base
when: manual
script:
- make publish
needs: [publish-dry-run]
build_ci:
stage: utility
extends: .build_ci_template
DOCKER_REPOSITORY: "docker-public.binary.picodata.io"