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

added ci script

parent 2bec4640
#!/bin/bash
DEPENDENCIES="libfsdetcore-0.10"
PROJECT_NAME="libagipdrecv"
echo "===START==="
echo "===INSTALL DEPENDENCIES==="
apt update
apt install -y "$DEPENDENCIES"*
echo "===copy source==="
cd /build
mkdir -p "$PROJECT_NAME"
cd "$PROJECT_NAME"
cp -r /src/"$PROJECT_NAME"/* .
echo "===prepare==="
cd /build
mkdir -p "build$PROJECT_NAME"
cd "build$PROJECT_NAME"
echo "===start build==="
cmake -DCMAKE_INSTALL_PREFIX="/lib.local/" /build/"$PROJECT_NAME"
make
echo "===run test==="
make test
echo "install"
make install
echo "===DONE==="
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