xref: /relibc/.gitlab-ci.yml (revision 9a7dfc4f4d84f578cb89e3b2e04590d58b7de86d)
1image: "redoxos/redoxer:latest"
2
3variables:
4  GIT_SUBMODULE_STRATEGY: recursive
5
6stages:
7    - build
8    - test
9
10default:
11    cache:
12        paths:
13            - target/
14
15build:linux:
16    stage: build
17    script:
18        - rustup show # Ensure correct toolchain is downloaded and installed
19        - make -j "$(nproc)" all
20
21build:redox:
22    stage: build
23    variables:
24        TARGET: x86_64-unknown-redox
25    script:
26        - ./redoxer.sh -j "$(nproc)" all
27
28test:linux:
29    stage: test
30    needs:
31        - build:linux
32    dependencies:
33        - build:linux
34    script:
35        - make test
36
37#TODO: fix redoxer exec hangs
38# test:redox:
39#     stage: test
40#     needs:
41#         - build:redox
42#     dependencies:
43#         - build:redox
44#     variables:
45#         TARGET: x86_64-unknown-redox
46#     script:
47#         - ./redoxer.sh test
48#     # TODO: Out of memory
49#     allow_failure: true
50
51fmt:
52    stage: test
53    needs: []
54    script:
55        - rustup component add rustfmt-preview
56        - ./fmt.sh -- --check
57