Commit f6b51afb authored by Yuelong Yu's avatar Yuelong Yu
Browse files

added gitlab ci files

parent 76818248
variables:
debian9_image_name: yyl10/debian9:latest
debian10_image_name: yyl10/debian10:latest
stages:
- build
- test
- deploy
build on debian 9:
stage: build
image: $debian9_image_name
only:
- master
- develop
before_script:
- apt install -y unzip
- echo "get depencency libfsdetcore"
- curl --header "Private-Token:${USER_TOKEN}" https://eosc-pan-git.desy.de/api/v4/projects/115/jobs/4254/artifacts/ -o libfsdetcore-debian9.zip
- unzip libfsdetcore-debian9.zip
- dpkg -i libfsdetcore/libfsdetcore*.deb
- dpkg -l|grep libfsdetcore
script:
- source .gitlab/build.sh
artifacts:
paths:
- report/*.xml
build on debian 10:
stage: build
image: $debian10_image_name
only:
- master
- develop
before_script:
- apt install -y unzip
- echo "get depencency libfsdetcore"
- curl --header "Private-Token:${USER_TOKEN}" https://eosc-pan-git.desy.de/api/v4/projects/115/jobs/4255/artifacts/ -o libfsdetcore-debian10.zip
- unzip libfsdetcore-debian10.zip
- dpkg -i libfsdetcore/libfsdetcore*.deb
- dpkg -l|grep libfsdetcore
script:
- source .gitlab/build.sh
artifacts:
paths:
- report/*.xml
build package debian 9:
stage: deploy
only:
- master
- tags
variables:
UPSTREAM_IMAGENAME: $debian9_image_name
UPSTREAM_DIST: debian9
UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
UPSTREAM_HASH: $CI_COMMIT_SHORT_SHA
trigger: yuelong/libagipdctrl-deploy
build package debian 10:
stage: deploy
only:
- master
- tags
variables:
UPSTREAM_IMAGENAME: $debian10_image_name
UPSTREAM_DIST: debian10
UPSTREAM_BRANCH: $CI_COMMIT_REF_NAME
UPSTREAM_HASH: $CI_COMMIT_SHORT_SHA
trigger: yuelong/libagipdctrl-deploy
\ No newline at end of file
#!/bin/bash
# author : Yuelong Yu
SOURCE_ROOT=$PWD
mkdir -p report
echo "=create build folder="
mkdir -p build && cd build
echo "=start build="
cmake -DCMAKE_INSTALL_PREFIX="/lib.local/" -DCMAKE_BUILD_TYPE=DEBUG "$SOURCE_ROOT"
make -j4
echo "=run test="
ctest --verbose
echo "=install="
make install
cd "$SOURCE_ROOT"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment