Skip to content
Snippets Groups Projects
Commit 3adc15d5 authored by Alam Ed Arias's avatar Alam Ed Arias
Browse files

Update .gitlab-ci.yml file

Only need to setup debconf in before_script
parent b8861b19
No related branches found
No related tags found
No related merge requests found
default:
image: debian:stable-slim
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- build - build
default: variables:
image: debian:stable-slim GIT_STRATEGY: clone
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/$CI_PROJECT_PATH
.debconf: &debconf
export DEBIAN_FRONTEND="noninteractive";
export DEBIAN_PRIORITY="low";
export DEBCONF_NONINTERACTIVE_SEEN="true";
.job_template: &job_build # This job runs in the build stage, which runs first. .job_template: &job_build # This job runs in the build stage, which runs first.
stage: build stage: build
variables:
GIT_STRATEGY: clone
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/$CI_PROJECT_PATH
cache: cache:
- key: ccache-$CI_PROJECT_PATH_SLUG-$CI_JOB_NAME_SLUG - key: ccache-$CI_PROJECT_PATH_SLUG-$CI_JOB_NAME_SLUG
fallback_keys: fallback_keys:
...@@ -22,14 +20,18 @@ default: ...@@ -22,14 +20,18 @@ default:
paths: paths:
- ccache - ccache
- ccache_statslog - ccache_statslog
- key: apt-$CI_JOB_IMAGE - key: apt-$CI_JOB_IMAGE
paths: paths:
- apt-cache - apt-cache
unprotect: true unprotect: true
before_script: before_script:
- - echo -e "\e[0Ksection_start:`date +%s`:debconf_pre[collapsed=true]\r\e[0KSetup debconf's environment" - - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
- *debconf - export DEBIAN_FRONTEND="noninteractive"
- echo -e "\e[0Ksection_end:`date +%s`:debconf_pre\r\e[0K" - export DEBIAN_PRIORITY="low"
- export DEBCONF_NONINTERACTIVE_SEEN="true"
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
- - echo -e "\e[0Ksection_start:`date +%s`:dpkg_aa[collapsed=true]\r\e[0KAdding architectures to dpkg" - - echo -e "\e[0Ksection_start:`date +%s`:dpkg_aa[collapsed=true]\r\e[0KAdding architectures to dpkg"
- dpkg --add-architecture i386 - dpkg --add-architecture i386
...@@ -122,10 +124,6 @@ build-i686-w64-mingw32: ...@@ -122,10 +124,6 @@ build-i686-w64-mingw32:
variables: variables:
PREFIX: i686-w64-mingw32 PREFIX: i686-w64-mingw32
script: script:
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
- *debconf
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
- apt-get install gcc-mingw-w64-i686-win32 - apt-get install gcc-mingw-w64-i686-win32
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
...@@ -146,10 +144,6 @@ build-x86_64-linux-gnu: ...@@ -146,10 +144,6 @@ build-x86_64-linux-gnu:
OBJDUMP: x86_64-linux-gnu-objdump OBJDUMP: x86_64-linux-gnu-objdump
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig
script: script:
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
- *debconf
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
- apt-get install gcc-x86-64-linux-gnu || apt-get install gcc - apt-get install gcc-x86-64-linux-gnu || apt-get install gcc
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
...@@ -174,10 +168,6 @@ build-i686-linux-gnu: ...@@ -174,10 +168,6 @@ build-i686-linux-gnu:
OBJDUMP: i686-linux-gnu-objdump OBJDUMP: i686-linux-gnu-objdump
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
script: script:
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
- *debconf
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
- apt-get install gcc-i686-linux-gnu || apt-get install gcc - apt-get install gcc-i686-linux-gnu || apt-get install gcc
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
...@@ -202,10 +192,6 @@ build-aarch64-linux-gnu: ...@@ -202,10 +192,6 @@ build-aarch64-linux-gnu:
OBJDUMP: aarch64-linux-gnu-objdump OBJDUMP: aarch64-linux-gnu-objdump
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
script: script:
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
- *debconf
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
- apt-get install gcc-aarch64-linux-gnu || apt-get install gcc - apt-get install gcc-aarch64-linux-gnu || apt-get install gcc
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
...@@ -227,10 +213,6 @@ build-x86_64-w64-mingw32: ...@@ -227,10 +213,6 @@ build-x86_64-w64-mingw32:
variables: variables:
PREFIX: x86_64-w64-mingw32 PREFIX: x86_64-w64-mingw32
script: script:
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
- *debconf
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages" - - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
- apt-get install gcc-mingw-w64-x86-64-win32 - apt-get install gcc-mingw-w64-x86-64-win32
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K" - echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment