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

added ci script

parent 1815ac19
Pipeline #14075 failed with stage
in 1 minute and 3 seconds
File mode changed from 100644 to 100755
variables:
debian9_image_name: gitlab.desy.de:5555/yuelong.yu/docker-image-debian9/debian9:latest
debian10_image_name: gitlab.desy.de:5555/yuelong.yu/docker-image-debian10/debian10:latest
stages:
- build
- test
- deploy
.build_scripts: &build_scripts
script:
- apt install -y libusb-1.0-0-dev siso550-devel
- source .gitlab/build.sh
build on debian 9:
stage: build
image: $debian9_image_name
tags:
- DESY-intern
<<: *build_scripts
build on debian 10:
stage: build
image: $debian10_image_name
tags:
- DESY-intern
<<: *build_scripts
\ 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
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -24,5 +24,5 @@
namespace PcoNS
{
const std::string PCOSDK_VERSION="0.6";
const std::string PCOSDK_VERSION="0.7";
}
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -3,8 +3,8 @@ find_path(SISO_INC_DIRS NAMES clser.h
PATHS
/usr/include
/usr/local/include
/opt/SiliconSoftware/Runtime5.6.0/include
/home/yuelong/lib.local/include/siso560
/opt/SiliconSoftware/Runtime5.5.0/include
/home/yuelong/lib.local/include/siso550
)
#path of pco path
......@@ -12,8 +12,8 @@ find_library(SISO_LIB_DIRS NAMES fglib5
PATHS
/usr/lib/
/usr/local/lib
/opt/SiliconSoftware/Runtime5.6.0/lib
/home/yuelong/lib.local/lib/siso560
/opt/SiliconSoftware/Runtime5.5.0/lib
/home/yuelong/lib.local/lib/siso550
)
if(SISO_INC_DIRS AND SISO_LIB_DIRS)
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
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