Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (27 sloc) 850 Bytes
version: 0.2
env:
variables:
build_version: "0.1"
phases:
install:
commands:
- apt-get install gcc make -y
pre_build:
commands:
- mkdir -p ./cbsample-$build_version/DEBIAN
- mkdir -p ./cbsample-$build_version/usr/lib
- mkdir -p ./cbsample-$build_version/usr/include
- mkdir -p ./cbsample-$build_version/usr/bin
- cp -f cbsample.control ./cbsample-$build_version/DEBIAN/control
build:
commands:
- echo "Building the application"
- make
- cp libcbsamplelib.so ./cbsample-$build_version/usr/lib
- cp cbsamplelib.h ./cbsample-$build_version/usr/include
- cp cbsampleutil ./cbsample-$build_version/usr/bin
- chmod +x ./cbsample-$build_version/usr/bin/cbsampleutil
- dpkg-deb --build ./cbsample-$build_version
artifacts:
files:
- cbsample-*.deb
You can’t perform that action at this time.