From 59590aa9b7b5b43a0660ad0a7c71273c7315d922 Mon Sep 17 00:00:00 2001 From: tkl Date: Sat, 23 Jul 2016 08:43:05 +0200 Subject: [PATCH] ci build job file --- .gitlab-ci.yml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3b3a977 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,69 @@ + + +variables: + PRODUCT_NAME: "AG" +# PRODUCT_VARIANT: "NA" + PRODUCT_VARIANT: "EU" +# PRODUCT_VARIANT: "CN" + PROJECT_VERSION: "10" + SW_MAJOR: "1" + SW_MINOR: "3" + + +before_script: + - "echo $CI_BUILD_ID" + - "echo $CI_BUILD_REF_NAME" + +stages: + - build +# - check +# - test +# - deploy + +build_job: + script: + - "cd source" + - "make APP=test BOARD=stm32f4-discovery" + - "make APP=example_semaphore BOARD=stm32f4-discovery" + stage: build + except: + - /^release/.*$/ + +#check_job: +# script: +# - "cd top_agricola/core" +# - "./generate_cpp_ci_makefile.py" +# - "make -f Makefile_ci.cck all" +# stage: check + +#test_job: +# script: "echo test stage" +# stage: test + +#int_release_job: +# script: +# - "cd top_agricola/core" +# - "./generate_ci_makefile.py" +# - "make -f Makefile_ci.gen all" +# - "cd ci" +# - "./deploy_release.py -t rc" +# stage: deploy +# only: +# - /^release/.*$/ +# except: +# - tags + +#ext_release_job: +# script: +# - "cd top_agricola/core" +# - "./generate_ci_makefile.py" +# - "make -f Makefile_ci.gen all" +# - "cd ci" +# - "./deploy_release.py -t r" +# stage: deploy +# only: +# - /^release/174_AG.*$/ +# except: +# - branches + +