From dff87a00ee413003b73f8598fbc8b16717afd8b7 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 5 Sep 2016 21:39:25 +0200 Subject: [PATCH] [CI] add ci of gitlab --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..98ab1b7 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +# This file is a template, and might need editing before it works on your project. +# use the official gcc image, based on debian +# can use verions as well, like gcc:5.2 +# see https://hub.docker.com/_/gcc/ +image: gcc + +before_script: + - pwd + - git clone --depth 1 --branch master https://gitlab.com/atria-soft/ci.git + - ls -l * + - ls -l .. + - apt-get update -qy + - apt-get install -y python-dev python-pip + #- pip install setuptools + - ./setup.py install + #- export PYTHONPATH=$PYTHONPATH:./lutin/build/lib.linux-x86_64-2.7/:./lutin/build/lib.linux-x86_64-2.7/lutin/:./lutin/build/lib:./lutin/build/lib/lutin/ +# - ./ci/build_send.py --tag=$TAG --status=START; + + +build: + stage: build + # instead of calling g++ directly you can also use some build toolkit like make + # install the necessary build tools when needed + # before_script: + # - apt update && apt -y install make autoconf + script: + - export TARGET=-tLinux + - export CONF=-mdebug + - export BUILDER=-cgcc + - lutin -w -j4 -C -P $TARGET $BUILDER $COMPILATOR_OPTION $BUS $CONF $GCOV $DISABLE_PACKAGE test-c; STATUS=$? +# - ./ci/build_send.py --tag=$TAG --status="$STATUS"; +# artifacts: +# paths: +# - mybinary