-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
34 lines (29 loc) · 1.08 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
image: 'registry.scoopit.io/scoopit-runner'
stages:
- build
- deploy
build:
stage: build
script:
- cargo build --all --target=x86_64-unknown-linux-musl --all-targets --color=always
- RUST_BACKTRACE=1 cargo test --target=x86_64-unknown-linux-musl
## basic upload / download checks
- target/x86_64-unknown-linux-musl/debug/binrep push binrep-ci-test auto target/x86_64-unknown-linux-musl/debug/binrep target/x86_64-unknown-linux-musl/debug/binrep-batch
- target/x86_64-unknown-linux-musl/debug/binrep sync binrep-ci-test latest sync-output-dir
release:
stage: build
only:
- tags
artifacts:
paths:
- target/x86_64-unknown-linux-musl/release/binrep
- target/x86_64-unknown-linux-musl/release/binrep-batch
script:
- cargo build --target=x86_64-unknown-linux-musl --release --all --all-targets --color=always
binrep_publish:
stage: deploy
only:
- tags
script:
- chmod +x target/x86_64-unknown-linux-musl/release/*
- target/x86_64-unknown-linux-musl/release/binrep push binrep $CI_COMMIT_TAG target/x86_64-unknown-linux-musl/release/*