diff options
author | jak1 <mike.wollmann@gmail.com> | 2021-05-23 10:11:57 +0200 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-05-23 10:11:57 +0200 |
commit | 03b519c9b6f1f613102c45aeb29ceb6962db3e94 (patch) | |
tree | 10f3fac3572326b92ba88e00ab574bf87dad1b2d /.gitlab-ci.yml | |
parent | d3533cc657b2e143573d4fba2c10e99a9017d02a (diff) | |
download | manaplus-03b519c9b6f1f613102c45aeb29ceb6962db3e94.tar.gz manaplus-03b519c9b6f1f613102c45aeb29ceb6962db3e94.tar.bz2 manaplus-03b519c9b6f1f613102c45aeb29ceb6962db3e94.tar.xz manaplus-03b519c9b6f1f613102c45aeb29ceb6962db3e94.zip |
[ci] splitted jobs
gcov -> build
doxygen -> build
pages -> deploy
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a35eac8a..049f6bc30 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,7 +49,7 @@ variables: - logs - public when: always - expire_in: 3 week + expire_in: 1 day dependencies: [] # pre build @@ -357,13 +357,12 @@ gcc-5_h_all_i386: - docker gcov_gcc6: - stage: deploy + stage: build image: debian:stretch script: - - mkdir -p public/coverage/ + - mkdir -p coverage/ - ./tools/ci/scripts/patchsdl1.sh - ./tools/ci/jobs/gcc6_tests_gcov.sh --without-dyecmd --without-manaplusgame - <<: *job-pages variables: PACKAGES: gcc-6 g++-6 make autoconf automake autopoint gettext @@ -374,30 +373,42 @@ gcov_gcc6: coverage: /^\s*lines:\s*\d+.\d+\%/ artifacts: paths: - - public - expire_in: 30 days + - coverage + expire_in: 2 days name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} reports: - cobertura: public/coverage/gcc6.xml + cobertura: coverage/gcc-6.xml tags: - docker doxygen: - stage: deploy + stage: build image: debian:stretch script: - ./tools/ci/scripts/patchsdl1.sh - ./tools/ci/jobs/doxygen.sh - - mv doxygen public/ - <<: *job-pages variables: PACKAGES: doxygen graphviz libxml2-dev libcurl4-gnutls-dev libpng-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev git-core + artifacts: + paths: + - doxygen + expire_in: 2 days tags: - docker +pages: + stage: deploy + image: debian:stretch + script: + - mkdir -p public + - cp -r doxygen/html/ public/doxygen/ + - cp -r coverage/ public/coverage/ + - echo "<DOCTYPE html><head></head><body><a href='./doxygen/index.html'>Doxygen</a><br><a href='./coverage/gcc-6.html'>Coverage</a></body>" > public/index.html + <<: *job-pages + # tests triggers: |