-
Notifications
You must be signed in to change notification settings - Fork 60
/
.gitlab-ci.yml
58 lines (50 loc) · 1.03 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
52
53
54
55
56
57
58
image: "redoxos/redoxer:latest"
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
before_script:
cargo install cbindgen
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