summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 9f753b7b9c8c318d8d2db6f8d7cada5c2d68625b (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
build:ubuntu:
  image: gcc
  stage: build
  script:
    - apt update && apt -y install cmake make
    - cmake .
    - make
  artifacts:
    paths:
      - bin 

build:arch:
  image: testcab/yay
  stage: build
  script:
    - yay -Syu --noconfirm cmake git cpr nlohmann-json pugixml fmt
    - cd aur
# If this does not work, then try CI_COMMIT_REF_SLUG
    - echo $CI_COMMIT_REF_NAME
    - sed -i 's:PLACEHOLDER:'$CI_COMMIT_REF_NAME':' PKGBUILD
    - makepkg PKGBUILD
  artifacts:
    paths:
      - aur/PKGBUILD
      - aur/src/rttt/bin/rttt

# run tests using the binary built before
test:
  image: gcc
  stage: test
  script:
    - run-parts --regex catch_ bin/