diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-09-07 15:00:38 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-09-07 15:00:38 +0200 |
| commit | 0c539b784d2f42a32c8999246f2184d5cd913830 (patch) | |
| tree | 3dd0938858bc15c948f84cd656fc7ad636b14a14 /.gitlab-ci.yml | |
| parent | 0696bbe422ea3370e3acc037f68c06397338fc65 (diff) | |
Fine tune GitLab-CI script
Also: update documentation copyright year.
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb5257244..481ee5372 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,15 +2,12 @@ # # It serves two purposes: # -# (1) Continuously building FLTK with several build systems. +# (1) Continuously building FLTK with one or more build systems. # (2) Generating current HTML documentation and putting it online. # # The documentation will be viewable at: # -# https://fltk.gitlab.io/<repository>/ -# -# <repository> can be: -# - fltk +# https://fltk.gitlab.io/fltk/ # # Details of this script: # @@ -56,16 +53,23 @@ build-autotools: build-cmake: stage: build + only: + - master # install the necessary build tools before_script: + - date - apt update && apt -y install cmake ninja-build - apt -y install freeglut3-dev libfontconfig-dev libxft-dev libglew-dev - apt -y install libxcursor-dev libxinerama-dev libasound2-dev - apt -y install libpango1.0-dev libcairo2-dev script: + - date + - gcc --version - mkdir build && cd build - cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLTK_BUILD_EXAMPLES=ON -DOPTION_USE_PANGO=ON -DOPTION_CAIRO=ON .. + - date - time ninja + - date artifacts: paths: - build/lib/ @@ -75,16 +79,25 @@ build-cmake: pages: stage: deploy + only: + - master + # run this job (documentation) independent of the build jobs (empty "needs" clause) + needs: [] # install the necessary build tools before_script: + - date - apt update && apt -y install make autoconf man doxygen script: + - date - make clean - cd documentation + - date - make && make html + - date - cd .. - mkdir -p public/ - mv documentation/html/* public/ + - date artifacts: paths: - public |
