[master] 0696bbe - Reduce GitLab CI/CD build time due to new limits

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 0696bbe - Reduce GitLab CI/CD build time due to new limits "Albrecht Schlosser" 03:17 Sep 07 top right image
 
commit 0696bbe422ea3370e3acc037f68c06397338fc65
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Sep 7 12:09:55 2020 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Sep 7 12:09:55 2020 +0200

    Reduce GitLab CI/CD build time due to new limits
    
    GitLab Free account CI/CD limits effective Oct 1, 2020 will be
    400 minutes per month. Trying to keep build time below the limit.

 .gitlab-ci.yml | 45 +++++++++------------------------------------
 1 file changed, 9 insertions(+), 36 deletions(-)

diff --git .gitlab-ci.yml .gitlab-ci.yml
index 2c339f5..eb52572 100644
--- .gitlab-ci.yml
+++ .gitlab-ci.yml
@@ -9,9 +9,8 @@
 #
 # https://fltk.gitlab.io/<repository>/
 #
-# <repository> can be one of:
+# <repository> can be:
 #  - fltk
-#  - fltk-test
 #
 # Details of this script:
 #
@@ -23,13 +22,17 @@ image: gcc
 
 stages:
   - build
-  - test
   - deploy
 
 # Build with autoconf/make (including Pango and Cairo)
 
+# Disabled for regular builds after commits to save build time: "only schedules"
+# Note: Build time limits on "GitLab Free" effective Oct 2020: 400 minutes per month
+
 build-autotools:
   stage: build
+  only:
+    - schedules
   # install the necessary build tools
   before_script:
     - apt update && apt -y install make autoconf man
@@ -49,7 +52,7 @@ build-autotools:
       - test/unittests
       - test/fltk-versions
 
-# Build with CMake and Ninja (default configuration)
+# Build with CMake and Ninja (with pango, cairo, building examples)
 
 build-cmake:
   stage: build
@@ -58,46 +61,16 @@ build-cmake:
     - 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:
     - mkdir build && cd build
-    - cmake -DCMAKE_BUILD_TYPE=Debug -DFLTK_BUILD_EXAMPLES=ON -G Ninja ..
+    - cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLTK_BUILD_EXAMPLES=ON -DOPTION_USE_PANGO=ON -DOPTION_CAIRO=ON ..
     - time ninja
   artifacts:
     paths:
       - build/lib/
       - build/bin/
 
-# Build HTML documentation
-
-documentation:
-  stage: build
-  only:
-    - schedules
-  # install the necessary build tools
-  before_script:
-    - apt update && apt -y install make autoconf man doxygen
-  script:
-    - make clean
-    - doxygen --version
-    - cd documentation && make && make html
-  artifacts:
-    paths:
-      - documentation/src/*.[1-6]
-      - documentation/html
-
-  # depending on your build setup it's most likely a good idea to
-  #   cache outputs to reduce the build time
-  # cache:
-  #   paths:
-  #     - "*.o"
-
-# run tests using the binary built before
-#test:
-#  stage: test
-#  script:
-#    - ./runmytests.sh
-
-
 # Generate and install HTML documentation
 
 pages:
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2020 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.