summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2022-02-16 11:08:52 -0800
committerGitHub <noreply@github.com>2022-02-16 11:08:52 -0800
commit9f0d863250467c72ecd5db680731aa02813044a8 (patch)
tree4bc36e5a656150f45e23238e849966289c0a5208
parent6b7000c14a2f5ffd0183977228c9d6d2674028d8 (diff)
parent2973c74e8000006c64ad59f266abf2997e46a537 (diff)
Merge pull request #107 from Jason-elkins/patch-5
Create .gitlab-ci.yml
-rw-r--r--.gitlab-ci.yml94
1 files changed, 94 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..80f9f01
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,94 @@
+# The runner VM is expected to already have dependencies installed.
+# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
+
+
+#### SETUP ####
+workflow:
+ rules:
+ - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
+ - if: '$CI_PIPELINE_SOURCE == "pipeline"'
+ - if: '$CI_COMMIT_BRANCH == "master"'
+ - if: '$CI_PIPELINE_SOURCE == "web"'
+
+stages:
+ - build
+ - test
+ - trigger_downstream
+
+.run_build: &run_build
+ stage: build
+ script:
+ - echo "Building"
+ - autoreconf -if
+ - "./configure --enable-as-02 --enable-dev-headers --with-xerces --prefix=/opt/cinecert CPPFLAGS=-I/opt/cinecert/include LDFLAGS=-L/opt/cinecert/lib"
+ - make
+ - sudo make install
+ - sudo ldconfig
+
+.run_tests: &run_tests
+ stage: test
+ script:
+ - echo "No Unittests available."
+
+
+
+#### BUILD ####
+Ubuntu_16.04.6:
+ tags: ["Ubuntu_16.04.6"]
+ <<: *run_build
+
+Ubuntu_20.04:
+ stage: build
+ tags: ["Ubuntu_20.04", "Python_3.8"]
+ script:
+ - echo "Building"
+ - autoreconf -if
+ - "./configure --enable-as-02 --enable-dev-headers --with-xerces=/opt/cinecert --prefix=/opt/cinecert CPPFLAGS=-I/opt/cinecert/include LDFLAGS=-L/opt/cinecert/lib"
+ - make
+ - sudo make install
+ - sudo ldconfig
+
+Centos_7.2.1511:
+ tags: ["Centos_7.2.1511"]
+ variables:
+ GIT_STRATEGY: clone
+ <<: *run_build
+
+Docker:
+ tags: ["docker"]
+ image: "registry.eng.cinecert.com/cc_projects/kalai/build_ubuntu_16.04:1.0.0"
+ <<: *run_build
+
+
+
+#### TEST ####
+Ubuntu__16_tests:
+ tags: ["Ubuntu_16.04.6"]
+ variables:
+ GIT_STRATEGY: none
+ <<: *run_tests
+
+Ubuntu_20_tests:
+ tags: ["Ubuntu_20.04", "Python_3.8"]
+ variables:
+ GIT_STRATEGY: none
+ <<: *run_tests
+
+Centos_7_tests:
+ tags: ["Centos_7.2.1511"]
+ variables:
+ GIT_STRATEGY: none
+ <<: *run_tests
+
+
+
+#### TRIGGER ####
+trigger_downstream:
+ stage: trigger_downstream
+ trigger:
+ project: cc_projects/napali
+ branch: master
+
+#
+#
+#