drone test
the build was successful Details

This commit is contained in:
tastytea 2018-06-12 04:59:46 +02:00
parent de8665481e
commit 76e18a2ff6
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
1 changed files with 30 additions and 0 deletions

30
.drone.yml Normal file
View File

@ -0,0 +1,30 @@
pipeline:
build:
image: debian:buster-slim
pull: true
commands:
- apt-get update
- apt-get install -y build-essential cmake pkg-config
- apt-get install -y libcurl4-openssl-dev libcurlpp-dev libjsoncpp-dev
- apt-get install -y rpm file
- mkdir -p build && cd build
- cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
- make VERBOSE=1
- make install DESTDIR=install
- ctest ..
- cp -v ../packages/gentoo/mastodon-cpp-0.0.0.ebuild mastodon-cpp-${DRONE_TAG}.ebuild
- cmake -DWITH_DEB=ON ..
- make package
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
- make package
pipeline:
gitea_release:
when:
event: tag
image: plugins/gitea-release
base_url: https://schlomp.space
files:
- "mastodon-cpp-${DRONE_TAG}.ebuild"
- "libmastodon-cpp_${DRONE_TAG}-0_amd64.deb"
- "libmastodon-cpp-${DRONE_TAG}-0.x86_64.rpm"