forked from redox-os/relibc
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
56 lines (48 loc) · 1016 Bytes
/
.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
52
53
54
55
56
image: "redoxos/redoxer:latest"
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
default:
cache:
paths:
- target/
build:linux:
stage: build
script:
- rustup show # Ensure correct toolchain is downloaded and installed
- make -j "$(nproc)" all
build:redox:
stage: build
variables:
TARGET: x86_64-unknown-redox
script:
- ./redoxer.sh -j "$(nproc)" all
test:linux:
stage: test
needs:
- build:linux
dependencies:
- build:linux
script:
- make test
#TODO: fix redoxer exec hangs
# test:redox:
# stage: test
# needs:
# - build:redox
# dependencies:
# - build:redox
# variables:
# TARGET: x86_64-unknown-redox
# script:
# - ./redoxer.sh test
# # TODO: Out of memory
# allow_failure: true
fmt:
stage: test
needs: []
script:
- rustup component add rustfmt-preview
- ./fmt.sh -- --check