[gnome-commander/gitlab_cicd] Add initial .gitlab-ci.yml
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gitlab_cicd] Add initial .gitlab-ci.yml
- Date: Sat, 29 Jan 2022 21:54:32 +0000 (UTC)
commit 851aa51e900133346edc60f68ac98e6a908d9acd
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Jan 29 18:54:13 2022 +0100
Add initial .gitlab-ci.yml
.gitlab-ci.yml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..2aa80f70
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,26 @@
+image: ubuntu:21.10
+
+stages: # List of stages for jobs, and their order of execution
+ - build_test_deploy_check
+
+build-job: # This job runs in the build stage, which runs first.
+ stage: build_test_deploy_check
+ script:
+ - apt-get update -qq && env DEBIAN_FRONTEND=noninteractive apt-get install make autoconf-archive flex
yelp-tools libunique-dev cmake libgtest-dev -y
+ - echo "Compiling the code..."
+ - ./autogen.sh
+ - make
+ - echo "Compile complete. Starting Unit test phase..."
+ - export GCMD_PATH=$(pwd)
+ - cd /usr/src/gtest
+ - cmake .
+ - make -j4
+ - ln -s /usr/src/gtest/libgtest.a /usr/lib/libgtest.a
+ - ln -s /usr/src/gtest/libgtest_main.a /usr/lib/libgtest_main.a
+ - cp -r . $GCMD_PATH
+ - cd $GCMD_PATH
+ - echo "Run unit tests..."
+ - make check
+ - echo "Unit tests finished. Starting deploy-test phase"
+ - make distcheck
+ - echo "Application could be deployed."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]