-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.gitlab-ci.yml
48 lines (42 loc) · 1.14 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
image: "rust:latest"
stages:
- check
- release
before_script:
- apt-get update -yqq
- apt-get install -yqq --no-install-recommends build-essential libopenal-dev libsndfile1-dev libsixel-dev gstreamer1.0-dev gstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-bad
cache:
paths:
- target/
check:default:
stage: check
script:
- cargo test --all --verbose
check:default-bin:
stage: check
script:
- cargo test --all --features bin
check:minimal:
stage: check
script:
- cargo test --all --no-default-features
check:minimal-bin:
stage: check
script:
- cargo test --all --no-default-features --features bin
release:linux:
stage: release
script:
- cargo build --release --features bin
artifacts:
paths:
- target/release/termplay
release:linux-musl:
stage: release
script:
- apt-get install -yqq musl-tools
- rustup target add x86_64-unknown-linux-musl
- cargo build --release --no-default-features --features bin --target x86_64-unknown-linux-musl
artifacts:
paths:
- target/x86_64-unknown-linux-musl/release/termplay