From 85644db0d8226b220da428ce3ec874e758230ff6 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Sat, 7 Jan 2017 18:48:34 +0100 Subject: [PATCH] prototype gitlab ci recipe. --- .gitlab-ci.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ releasor | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..80b949d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,43 @@ +stages: + - build + - deploy + +variables: + REVISION: "4" + VERSION: "0.7.0" + +.build_template: &build_definition + stage: build + image: ventosus/universal-linux-gnu + before_script: + - apt-get -q update + - apt-get install -y gcc-arm-none-eabi + - git submodule update --init + script: + - make + - mkdir image + - cp "build/F303CB.bin" "image/chimaera_S${SENSORS}-${VERSION}-${REVISION}.dfu" + artifacts: + name: "image/chimaera_S${SENSORS}-${VERSION}-${REVISION}" + paths: + - image + +# building in docker +S128: + variables: + SENSORS: "128" + <<: *build_definition + +S160: + variables: + SENSORS: "160" + <<: *build_definition + +pack: + stage: deploy + script: + - echo 'packing up...' + artifacts: + name: "image/chimaera_${VERSION}-${REVISION}" + paths: + - image diff --git a/releasor b/releasor index 0e1bd16..c90ff0b 100755 --- a/releasor +++ b/releasor @@ -22,7 +22,7 @@ do # build make clean - make -j5 + make -j4 # pack dfuse_pack \ -- 2.38.5