-image: fedora
+image: opensuse:tumbleweed
stages:
- build
binary:debug:
stage: build
before_script:
- - dnf install make gcc libedit-devel libasan libubsan python2 PyYAML lcov -y
+ - zypper install -y make gcc libedit-devel libasan5 libubsan1 python python2-PyYAML lcov
script:
- make debug
artifacts:
- "*.o"
- dungeon.c
- dungeon.h
- - "*.gcno"
binary:release:
stage: build
before_script:
- - dnf install make gcc libedit-devel python2 PyYAML -y
+ - zypper install -y make gcc libedit-devel python python2-PyYAML
script:
- make advent cheat
artifacts:
manpage:
stage: build
before_script:
- - dnf install make asciidoc -y
+ - zypper install -y make asciidoc
script:
- make advent.6
artifacts:
html:
stage: build
before_script:
- - dnf install make asciidoc libxslt -y
+ - zypper install -y make asciidoc libxslt
script:
- make html
artifacts:
dist:
stage: build
before_script:
- - dnf install make asciidoc -y
+ - zypper install -y make asciidoc tar
script:
- export VERS=${CI_COMMIT_REF_NAME}
- make dist -e
test:debug:
stage: test
before_script:
- - dnf install make gcc libedit-devel libasan libubsan python2 PyYAML lcov -y
+ - zypper install -y make gcc libedit-devel libasan5 libubsan1 python python2-PyYAML lcov
script:
- - make debug
- - make check
- - lcov -t "advent" -o advent.info -c -d .
- - genhtml -o coverage advent.info
- - cd tests
- - ./coverage_dungeon.py
- - cd ..
+ - make coverage
artifacts:
paths:
- coverage
+ dependencies:
+ - binary:debug
+
+test:debug_clang:
+ stage: test
+ before_script:
+ - zypper install -y make clang libedit-devel python python2-PyYAML lcov
+ script:
+ - CC=clang make debug check
test:release:
stage: test
before_script:
- - dnf install make libedit -y
+ - zypper install -y make libedit
script:
- cd tests
- make