2020-01-02 02:57:06 +08:00
|
|
|
image: debian:testing
|
2019-08-21 19:54:38 +08:00
|
|
|
|
2019-07-29 07:11:44 +08:00
|
|
|
stages:
|
2020-05-30 06:41:22 +08:00
|
|
|
- prepare
|
2019-10-02 03:36:19 +08:00
|
|
|
- dependencies
|
2019-07-29 07:11:44 +08:00
|
|
|
- gimp
|
2020-04-29 00:39:32 +08:00
|
|
|
- analysis
|
2019-07-29 07:11:44 +08:00
|
|
|
|
|
|
|
variables:
|
2019-10-02 02:36:09 +08:00
|
|
|
GIT_DEPTH: "1"
|
2019-07-29 07:11:44 +08:00
|
|
|
INSTALL_DIR: "_install"
|
2019-08-21 19:54:38 +08:00
|
|
|
INSTALL_PREFIX: "${CI_PROJECT_DIR}/${INSTALL_DIR}"
|
2020-05-29 01:51:50 +08:00
|
|
|
APT_CACHE: "${CI_PROJECT_DIR}/apt-cache"
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2020-05-30 06:41:22 +08:00
|
|
|
## prepare docker images ##
|
|
|
|
|
|
|
|
build-image:
|
|
|
|
stage: prepare
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
cache: {}
|
|
|
|
image:
|
|
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
|
|
entrypoint: [""]
|
|
|
|
script:
|
|
|
|
- mkdir -p /kaniko/.docker
|
|
|
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
|
|
- echo "FROM debian:testing" > Dockerfile
|
|
|
|
- echo "RUN apt-get update" >> Dockerfile
|
|
|
|
- echo "RUN apt-get install -y --no-install-recommends \\" >> Dockerfile
|
|
|
|
- echo "at-spi2-core build-essential desktop-file-utils ffmpeg ghostscript git glib-networking gobject-introspection graphviz-dev gtk-doc-tools hicolor-icon-theme intltool iso-codes libappstream-glib-dev libbz2-dev libdbus-glib-1-dev libexif-dev libgexiv2-dev libgirepository1.0-dev libgtk-3-bin libgtk-3-dev libgudev-1.0-dev libjson-glib-dev liblcms2-dev liblzma-dev libmng-dev libmypaint-dev libopenexr-dev libpoppler-glib-dev libraw-dev libraw19 librsvg2-dev libspiro-dev libsuitesparse-dev libtiff-dev libtiff5-dev libtool libumfpack5 libwebp-dev libwmf-dev libxmu-dev libxpm-dev luajit meson mypaint-brushes poppler-data python3 valac xauth xvfb" >> Dockerfile
|
|
|
|
|
|
|
|
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:build-debian-latest --cache=true --cache-ttl=120h
|
|
|
|
|
|
|
|
|
|
|
|
build-image-win64:
|
|
|
|
stage: prepare
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
cache: {}
|
|
|
|
image:
|
|
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
|
|
entrypoint: [""]
|
|
|
|
script:
|
|
|
|
- mkdir -p /kaniko/.docker
|
|
|
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
|
|
- echo "FROM debian:testing" > Dockerfile
|
|
|
|
- echo "RUN apt-get update" >> Dockerfile
|
|
|
|
- echo "RUN apt-get install -y --no-install-recommends \\" >> Dockerfile
|
|
|
|
- echo "build-essential cpio g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64 git intltool libgdk-pixbuf2.0-dev libglib2.0-bin meson pkg-config python3 python3-distutils python3-docutils python3-pip rpm xsltproc" >> Dockerfile
|
|
|
|
|
|
|
|
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:build-win64-latest --cache=true --cache-ttl=120h
|
|
|
|
|
|
|
|
|
|
|
|
build-image-win32:
|
|
|
|
stage: prepare
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
cache: {}
|
|
|
|
image:
|
|
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
|
|
entrypoint: [""]
|
|
|
|
script:
|
|
|
|
- mkdir -p /kaniko/.docker
|
|
|
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
|
|
|
|
- echo "FROM debian:testing" > Dockerfile
|
|
|
|
- echo "RUN apt-get update" >> Dockerfile
|
|
|
|
- echo "RUN apt-get install -y --no-install-recommends \\" >> Dockerfile
|
|
|
|
- echo "build-essential cpio g++-mingw-w64-i686 gcc-mingw-w64-i686 git intltool libgdk-pixbuf2.0-dev libglib2.0-bin meson pkg-config python3 python3-distutils python3-docutils python3-pip rpm xsltproc" >> Dockerfile
|
|
|
|
|
|
|
|
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:build-win32-latest --cache=true --cache-ttl=120h
|
|
|
|
|
|
|
|
|
2020-08-06 19:21:05 +08:00
|
|
|
## GNU/Linux 64-bit CIs (Debian testing) ##
|
2019-11-25 02:41:06 +08:00
|
|
|
|
2020-08-06 19:21:05 +08:00
|
|
|
deps-debian:
|
2019-10-02 03:36:19 +08:00
|
|
|
stage: dependencies
|
2020-05-30 06:41:22 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE:build-debian-latest
|
2019-10-02 03:36:19 +08:00
|
|
|
cache:
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2020-05-29 01:51:50 +08:00
|
|
|
- apt-cache
|
2019-07-29 07:11:44 +08:00
|
|
|
artifacts:
|
2020-05-04 00:29:43 +08:00
|
|
|
expire_in: 2 hours
|
2019-10-02 00:36:07 +08:00
|
|
|
when: always
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2019-08-21 19:54:38 +08:00
|
|
|
- "${INSTALL_DIR}"
|
2019-10-02 03:36:19 +08:00
|
|
|
- _babl/_build
|
2019-10-02 00:36:07 +08:00
|
|
|
- _gegl/_build
|
2019-07-29 07:11:44 +08:00
|
|
|
before_script:
|
2020-01-02 02:57:06 +08:00
|
|
|
- git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/babl.git _babl
|
2019-08-21 19:54:38 +08:00
|
|
|
- git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl
|
2020-01-02 02:57:06 +08:00
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
|
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`:$LD_LIBRARY_PATH"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
2019-07-29 07:11:44 +08:00
|
|
|
script:
|
2019-10-02 03:36:19 +08:00
|
|
|
- cd _babl
|
|
|
|
- meson -Dprefix="${INSTALL_PREFIX}" _build
|
|
|
|
- ninja -C _build
|
|
|
|
- ninja -C _build install
|
|
|
|
- cd ../_gegl
|
2019-08-21 19:54:38 +08:00
|
|
|
- meson --prefix="${INSTALL_PREFIX}" _build
|
2019-08-17 03:30:57 +08:00
|
|
|
- ninja -C _build
|
|
|
|
- ninja -C _build install
|
2020-05-30 06:41:22 +08:00
|
|
|
needs: ["build-image"]
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2020-08-06 19:21:05 +08:00
|
|
|
.gimp-debian-base:
|
2019-07-29 07:11:44 +08:00
|
|
|
stage: gimp
|
2020-05-30 06:41:22 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE:build-debian-latest
|
2019-10-02 03:36:19 +08:00
|
|
|
dependencies:
|
2020-08-06 19:21:05 +08:00
|
|
|
- deps-debian
|
2020-05-29 01:51:50 +08:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- apt-cache
|
2019-07-29 07:11:44 +08:00
|
|
|
artifacts:
|
2020-05-09 19:19:18 +08:00
|
|
|
expire_in: 1 days
|
2019-10-02 00:36:07 +08:00
|
|
|
when: always
|
|
|
|
name: "app-build-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2019-07-29 07:11:44 +08:00
|
|
|
paths:
|
2019-10-02 00:36:07 +08:00
|
|
|
- _build
|
|
|
|
#- "${INSTALL_DIR}"
|
2019-07-29 07:11:44 +08:00
|
|
|
before_script:
|
2020-01-02 02:57:06 +08:00
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
|
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
|
|
|
|
- export PKG_CONFIG_PATH="${INSTALL_PREFIX}/share/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
|
|
|
|
- export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`:$LD_LIBRARY_PATH"
|
|
|
|
- export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
|
|
|
|
- export PATH="${INSTALL_PREFIX}/bin:$PATH"
|
2020-08-06 19:21:05 +08:00
|
|
|
needs: ["deps-debian"]
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2020-08-06 19:21:05 +08:00
|
|
|
gimp-autotools-debian:
|
|
|
|
extends: .gimp-debian-base
|
2019-07-29 07:11:44 +08:00
|
|
|
script:
|
2019-08-21 19:54:38 +08:00
|
|
|
- mkdir _build
|
2019-07-29 07:11:44 +08:00
|
|
|
- cd _build
|
2019-09-11 23:09:05 +08:00
|
|
|
- ../autogen.sh
|
2019-08-21 19:54:38 +08:00
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
--enable-debug
|
|
|
|
--with-python=force
|
|
|
|
--with-javascript=force
|
|
|
|
--with-lua=force
|
|
|
|
- make -j "$(nproc)"
|
2020-03-18 02:43:27 +08:00
|
|
|
- make check
|
2019-07-29 07:11:44 +08:00
|
|
|
|
2020-08-06 19:21:05 +08:00
|
|
|
gimp-distcheck-debian:
|
|
|
|
extends: .gimp-debian-base
|
2020-08-03 08:27:29 +08:00
|
|
|
script:
|
|
|
|
- mkdir _build
|
|
|
|
- cd _build
|
|
|
|
- ../autogen.sh
|
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
--enable-debug
|
|
|
|
--with-python=force
|
|
|
|
--with-javascript=force
|
|
|
|
--with-lua=force
|
|
|
|
--enable-gtk-doc
|
|
|
|
- make -j "$(nproc)"
|
2020-08-07 21:30:05 +08:00
|
|
|
- make -j "$(nproc)" distcheck
|
2020-08-03 08:27:29 +08:00
|
|
|
allow_failure: true
|
|
|
|
|
2020-08-06 19:21:05 +08:00
|
|
|
gimp-meson-debian:
|
|
|
|
extends: .gimp-debian-base
|
2019-08-09 22:18:43 +08:00
|
|
|
script:
|
|
|
|
- meson _build
|
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
-Dpython=always
|
|
|
|
-Djavascript=always
|
|
|
|
-Dlua=always
|
|
|
|
- ninja -C _build
|
2020-01-04 05:55:09 +08:00
|
|
|
- ninja -C _build test
|
2019-08-09 22:18:43 +08:00
|
|
|
|
2020-08-06 19:21:05 +08:00
|
|
|
gimp-clang-debian:
|
|
|
|
extends: .gimp-debian-base
|
2020-01-03 07:19:10 +08:00
|
|
|
variables:
|
|
|
|
CC: "clang"
|
|
|
|
CXX: "clang++"
|
|
|
|
script:
|
2020-05-30 06:41:22 +08:00
|
|
|
- mkdir -p "$APT_CACHE"
|
2020-05-29 01:51:50 +08:00
|
|
|
- apt-get install -y --no-install-recommends -o dir::cache::archives="$APT_CACHE"
|
2020-03-16 05:21:19 +08:00
|
|
|
clang libomp-dev
|
2020-01-03 07:19:10 +08:00
|
|
|
- meson _build
|
|
|
|
--prefix="${INSTALL_PREFIX}"
|
|
|
|
-Dpython=always
|
|
|
|
-Djavascript=always
|
|
|
|
-Dlua=always
|
|
|
|
- ninja -C _build
|
2020-01-04 05:55:09 +08:00
|
|
|
- ninja -C _build test
|
2020-01-03 07:19:10 +08:00
|
|
|
|
2019-11-25 02:41:06 +08:00
|
|
|
## WINDOWS 64-bit CI ##
|
|
|
|
|
2019-11-26 02:16:40 +08:00
|
|
|
deps-win64:
|
2019-10-02 03:36:19 +08:00
|
|
|
stage: dependencies
|
2020-05-30 06:41:22 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE:build-win64-latest
|
2019-10-02 03:36:19 +08:00
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
2020-05-29 01:51:50 +08:00
|
|
|
- apt-cache
|
2019-09-25 20:27:09 +08:00
|
|
|
before_script:
|
2020-04-16 21:19:36 +08:00
|
|
|
- git clone --depth=${GIT_DEPTH} git://git.tuxfamily.org/gitroot/crossroad/crossroad.git
|
2019-09-25 20:27:09 +08:00
|
|
|
- cd crossroad
|
2019-10-02 03:36:19 +08:00
|
|
|
- ./setup.py install --prefix=`pwd`/../.local
|
2019-09-25 20:27:09 +08:00
|
|
|
- cd ..
|
2020-04-27 20:46:11 +08:00
|
|
|
- pip3 install zstandard
|
2019-10-02 03:36:19 +08:00
|
|
|
script:
|
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
2019-10-25 04:20:20 +08:00
|
|
|
- crossroad w64 gimp --run="build/windows/crossbuild-gitlab-ci/build-deps.sh"
|
2019-10-02 03:36:19 +08:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
2020-05-04 00:29:43 +08:00
|
|
|
expire_in: 2 hours
|
2019-10-02 03:36:19 +08:00
|
|
|
paths:
|
|
|
|
- .local/
|
|
|
|
- _deps/
|
2020-05-30 06:41:22 +08:00
|
|
|
needs: ["build-image-win64"]
|
2019-09-25 20:27:09 +08:00
|
|
|
|
2019-11-26 02:16:40 +08:00
|
|
|
gimp-win64:
|
2019-10-02 03:36:19 +08:00
|
|
|
stage: gimp
|
2020-05-30 06:41:22 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE:build-win64-latest
|
2019-10-02 03:36:19 +08:00
|
|
|
dependencies:
|
2019-11-26 02:16:40 +08:00
|
|
|
- deps-win64
|
2019-10-01 19:44:42 +08:00
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
2019-10-02 03:36:19 +08:00
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
2019-10-01 19:44:42 +08:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
2020-05-29 01:51:50 +08:00
|
|
|
- apt-cache
|
2019-09-25 20:27:09 +08:00
|
|
|
script:
|
2019-10-02 03:36:19 +08:00
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
|
|
|
- mkdir _build && cd _build
|
|
|
|
- echo 'crossroad meson ..
|
2020-04-16 21:19:36 +08:00
|
|
|
-Dgtk-doc=false
|
2019-10-02 03:36:19 +08:00
|
|
|
-Dpython=always -Dlua=always
|
2019-10-26 19:00:46 +08:00
|
|
|
-Djavascript=always && ninja install &&
|
2019-10-25 04:47:56 +08:00
|
|
|
cp ../build/windows/crossbuild-gitlab-ci/gimp-wrapper.cmd $CROSSROAD_PREFIX/bin/ &&
|
|
|
|
cp -fr $CROSSROAD_PREFIX/ ../gimp-prefix/
|
2019-10-25 04:20:20 +08:00
|
|
|
' |
|
2019-10-02 03:36:19 +08:00
|
|
|
crossroad w64 gimp --run="-"
|
2019-11-26 02:16:40 +08:00
|
|
|
needs: ["deps-win64"]
|
2019-09-25 20:27:09 +08:00
|
|
|
artifacts:
|
2019-10-02 03:36:19 +08:00
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
2019-10-02 00:36:07 +08:00
|
|
|
when: always
|
2020-05-09 19:19:18 +08:00
|
|
|
expire_in: 1 day
|
2019-09-25 20:27:09 +08:00
|
|
|
paths:
|
|
|
|
- _build/
|
2019-10-25 04:47:56 +08:00
|
|
|
- gimp-prefix/
|
2019-11-25 02:41:06 +08:00
|
|
|
|
|
|
|
## WINDOWS 32-bit CI ##
|
|
|
|
|
2019-11-26 02:16:40 +08:00
|
|
|
deps-win32:
|
2019-11-25 02:41:06 +08:00
|
|
|
stage: dependencies
|
2020-05-30 06:41:22 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE:build-win32-latest
|
2019-11-25 02:41:06 +08:00
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
2020-05-29 01:51:50 +08:00
|
|
|
- apt-cache
|
2019-11-25 02:41:06 +08:00
|
|
|
before_script:
|
2020-04-16 21:19:36 +08:00
|
|
|
- git clone --depth=${GIT_DEPTH} git://git.tuxfamily.org/gitroot/crossroad/crossroad.git
|
2019-11-25 02:41:06 +08:00
|
|
|
- cd crossroad
|
|
|
|
- ./setup.py install --prefix=`pwd`/../.local
|
|
|
|
- cd ..
|
2020-04-27 20:46:11 +08:00
|
|
|
- pip3 install zstandard
|
2019-11-25 02:41:06 +08:00
|
|
|
script:
|
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
|
|
|
- crossroad w32 gimp --run="build/windows/crossbuild-gitlab-ci/build-deps.sh"
|
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
2020-05-09 19:19:18 +08:00
|
|
|
expire_in: 2 hours
|
2019-11-25 02:41:06 +08:00
|
|
|
paths:
|
|
|
|
- .local/
|
|
|
|
- _deps/
|
2020-05-30 06:41:22 +08:00
|
|
|
needs: ["build-image-win32"]
|
2019-11-25 02:41:06 +08:00
|
|
|
|
2019-11-26 02:16:40 +08:00
|
|
|
gimp-win32:
|
2019-11-25 02:41:06 +08:00
|
|
|
stage: gimp
|
2020-05-30 06:41:22 +08:00
|
|
|
image: $CI_REGISTRY_IMAGE:build-win32-latest
|
2019-11-25 02:41:06 +08:00
|
|
|
dependencies:
|
2019-11-26 02:16:40 +08:00
|
|
|
- deps-win32
|
2019-11-25 02:41:06 +08:00
|
|
|
variables:
|
|
|
|
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"
|
|
|
|
XDG_DATA_HOME: "$CI_PROJECT_DIR/.local/share/"
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache/crossroad/
|
2020-05-29 01:51:50 +08:00
|
|
|
- apt-cache
|
2019-11-25 02:41:06 +08:00
|
|
|
script:
|
|
|
|
- export PATH="`pwd`/.local/bin:$PATH"
|
|
|
|
- mkdir _build && cd _build
|
|
|
|
- echo 'crossroad meson ..
|
|
|
|
-Dwmf=disabled -Dgtk-doc=false
|
|
|
|
-Dpython=always -Dlua=always
|
|
|
|
-Djavascript=always && ninja install &&
|
|
|
|
cp ../build/windows/crossbuild-gitlab-ci/gimp-wrapper.cmd $CROSSROAD_PREFIX/bin/ &&
|
|
|
|
cp -fr $CROSSROAD_PREFIX/ ../gimp-prefix/
|
|
|
|
' |
|
|
|
|
crossroad w32 gimp --run="-"
|
2019-11-26 02:16:40 +08:00
|
|
|
needs: ["deps-win32"]
|
2019-11-25 02:41:06 +08:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
when: always
|
2020-05-04 00:29:43 +08:00
|
|
|
expire_in: 1 day
|
2019-11-25 02:41:06 +08:00
|
|
|
paths:
|
|
|
|
- _build/
|
|
|
|
- gimp-prefix/
|
2020-04-29 00:39:32 +08:00
|
|
|
|
|
|
|
cppcheck:
|
|
|
|
stage: analysis
|
|
|
|
before_script:
|
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y cppcheck
|
|
|
|
script:
|
2020-04-29 20:05:31 +08:00
|
|
|
- cppcheck -q -j8 --enable=all --force --output-file=cppcheck.xml --xml --xml-version=2
|
|
|
|
-i _build -i _deps -i gimp-prefix -i .local -i .cache .
|
2020-04-29 00:39:32 +08:00
|
|
|
- mkdir report
|
|
|
|
- cppcheck-htmlreport --source-dir=. --title=gimp --file=cppcheck.xml --report-dir=report
|
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- report
|
2020-05-05 22:21:43 +08:00
|
|
|
needs: []
|