aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 5c9a35107bc566a2023d0a75e1d36c87a76a6e15 (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
default:
  image: rust:latest

stages:
  - test
  - full-test

test:
  script:
    - cargo test --no-fail-fast
    - cargo test --no-fail-fast --no-default-features
    - rustup component add clippy
    - cargo clippy
    - rustup component add rustfmt
    - cargo fmt -- --check

full-test-tcl:
  stage: full-test
  script:
    - cargo install --path .
    - mkdir ~/tcl
    - cd ~/tcl
    - wget https://prdownloads.sourceforge.net/tcl/tcl8.6.11-src.tar.gz
    - tar xf tcl*.tar.gz
    - cd tcl*/unix/
    - ./configure
    - makers

full-test-uutils:
  stage: full-test
  script:
    - cargo install --path .
    - git clone https://github.com/uutils/coreutils.git ~/uutils-coreutils
    - cd ~/uutils-coreutils
    - apt update && apt install -y python3-sphinx
    - makers build
    - makers test || echo "test failed but that's not the point"
    - makers busytest || echo "busytest failed but that's not the point"

full-test-cpython:
  stage: full-test
  script:
    - cargo install --path .
    - mkdir ~/cpython
    - cd ~/cpython
    - wget https://www.python.org/ftp/python/3.9.3/Python-3.9.3.tar.xz
    - tar xf Python-*.tar.xz
    - cd Python-*/
    - ./configure
    - makers

full-test-spdx:
  stage: full-test
  script:
    - cargo install --path .
    - git clone https://github.com/spdx/license-list-XML.git ~/spdx-license-list
    - cd ~/spdx-license-list
    - apt update && apt install -y default-jre-headless
    - makers

full-test-libarchive:
  stage: full-test
  script:
    - cargo install --path .
    - cd
    - wget https://www.libarchive.org/downloads/libarchive-3.5.1.tar.xz
    - tar xf libarchive-*.tar.xz
    - cd libarchive-*/
    - ./configure
    - makers
    - makers check || echo "test failed but that's not the point"

full-test-xbps:
  stage: full-test
  script:
    - cargo install --path .
    - cd
    - wget https://www.libarchive.org/downloads/libarchive-3.5.1.tar.xz
    - tar xf libarchive-*.tar.xz
    - cd libarchive-*/
    - ./configure
    - makers
    - makers install
    - git clone https://github.com/void-linux/xbps.git ~/xbps
    - cd ~/xbps
    - ./configure
    - makers
  allow_failure: true

full-test-linux:
  stage: full-test
  script:
    - cargo install --path .
    - mkdir ~/linux
    - cd ~/linux
    - wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.11.11.tar.xz
    - tar xf linux-*.tar.xz
    - cd linux-*/
    - (makers -p 2>&1 || true) | grep 'Configuration file ".config" not found!'
    - makers help
    - makers mrproper
    - makers defconfig
    - makers
  allow_failure: true