forked from redox-os/relibc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
51 lines (43 loc) · 1.3 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
49
50
51
image: "rustlang/rust:nightly"
stages:
- build
- test
before_script:
- git submodule update --init --recursive
- rustup toolchain add "$(cat rust-toolchain)"
- rustup target add x86_64-unknown-redox --toolchain "$(cat rust-toolchain)"
- rustup show # Print version info for debugging
cache:
untracked: true
build:linux:
stage: build
script:
- make all
build:redox:
stage: build
variables:
TARGET: x86_64-unknown-redox
script:
# Install x86_64-unknown-redox-gcc
# This can't be in before_script because that overrides
# the global before_script.
- apt-get update -qq
- apt-get install -qq apt-transport-https build-essential curl git gnupg software-properties-common
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F
- add-apt-repository 'deb https://static.redox-os.org/toolchain/apt /'
- apt-get update -qq && apt-get install -qq x86-64-unknown-redox-gcc
# Main script
- make all
test:linux:
stage: test
dependencies:
- build:linux
script:
- make test
- cd tests && make verify
fmt:
stage: test
script:
- rustup component add rustfmt-preview
- ./fmt.sh -- --check
allow_failure: true