This commit is contained in:
parent
359bcacd1f
commit
06b989a0e3
56
.drone.yml
56
.drone.yml
|
@ -13,14 +13,14 @@ trigger:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: download
|
- name: download mastodon-cpp
|
||||||
image: plugins/download
|
image: plugins/download
|
||||||
settings:
|
settings:
|
||||||
source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.3/libmastodon-cpp_0.111.3-0_amd64.deb
|
source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.4/libmastodon-cpp_0.111.4-0_buster_amd64.deb
|
||||||
destination: mastodon-cpp.deb
|
destination: mastodon-cpp.deb
|
||||||
|
|
||||||
- name: gcc8
|
- name: gcc8
|
||||||
image: debian:stretch-slim
|
image: debian:buster-slim
|
||||||
pull: always
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
CXX: g++-8
|
CXX: g++-8
|
||||||
|
@ -28,20 +28,14 @@ steps:
|
||||||
LANG: C.utf8
|
LANG: C.utf8
|
||||||
commands:
|
commands:
|
||||||
- rm /etc/apt/apt.conf.d/docker-clean
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
|
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
- echo "deb https://packagecloud.io/mrtazz/restclient-cpp/debian/ buster main" > /etc/apt/sources.list.d/restclient-cpp.list
|
||||||
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
|
- apt-get install -qy debian-archive-keyring curl gnupg apt-transport-https
|
||||||
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
- curl -L https://packagecloud.io/mrtazz/restclient-cpp/gpgkey | apt-key add -
|
||||||
- apt-get install -qy gnupg
|
|
||||||
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
|
||||||
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
- apt-get install -qy build-essential cmake pkg-config
|
- apt-get install -qy build-essential cmake asciidoc
|
||||||
- apt-get install -qy -t xenial g++-8
|
- apt-get install -qy libboost-filesystem-dev libboost-log-dev libjsoncpp-dev catch restclient-cpp
|
||||||
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
|
|
||||||
- update-alternatives --set g++ /usr/bin/g++-8
|
|
||||||
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
|
||||||
- apt-get install -qy -t sid libcurlpp-dev
|
|
||||||
- apt-get -qy install ./mastodon-cpp.deb
|
- apt-get -qy install ./mastodon-cpp.deb
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
|
@ -51,38 +45,6 @@ steps:
|
||||||
- name: debian-package-cache
|
- name: debian-package-cache
|
||||||
path: /var/cache/apt/archives
|
path: /var/cache/apt/archives
|
||||||
|
|
||||||
- name: gcc5
|
|
||||||
image: debian:stretch-slim
|
|
||||||
pull: always
|
|
||||||
environment:
|
|
||||||
CXX: g++-8
|
|
||||||
CXXFLAGS: -pipe -O2
|
|
||||||
LANG: C.utf8
|
|
||||||
commands:
|
|
||||||
- rm /etc/apt/apt.conf.d/docker-clean
|
|
||||||
- apt-get update -q
|
|
||||||
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
|
||||||
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
|
|
||||||
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
|
||||||
- apt-get install -qy gnupg
|
|
||||||
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
|
||||||
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
|
||||||
- apt-get update -q
|
|
||||||
- apt-get install -qy build-essential cmake pkg-config
|
|
||||||
- apt-get install -qy -t xenial g++-5
|
|
||||||
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
|
|
||||||
- update-alternatives --set g++ /usr/bin/g++-5
|
|
||||||
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
|
||||||
- apt-get install -qy -t sid libcurlpp-dev
|
|
||||||
- apt-get install -qy ./mastodon-cpp.deb
|
|
||||||
- rm -rf build && mkdir -p build && cd build
|
|
||||||
- cmake ..
|
|
||||||
- make VERBOSE=1
|
|
||||||
- make install DESTDIR=install
|
|
||||||
volumes:
|
|
||||||
- name: debian-package-cache
|
|
||||||
path: /var/cache/apt/archives
|
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
pull: always
|
pull: always
|
||||||
|
|
|
@ -20,7 +20,7 @@ support Atom at the moment.
|
||||||
=== Dependencies
|
=== Dependencies
|
||||||
|
|
||||||
* Tested OS: Linux
|
* Tested OS: Linux
|
||||||
* C++ compiler (tested: link:{uri-gcc}[gcc] 9)
|
* C++ compiler (tested: link:{uri-gcc}[gcc] 8/9)
|
||||||
* link:{uri-cmake}[cmake] (at least: 3.9)
|
* link:{uri-cmake}[cmake] (at least: 3.9)
|
||||||
* link:{uri-boost}[boost] (at least: 1.62)
|
* link:{uri-boost}[boost] (at least: 1.62)
|
||||||
* link:{uri-mastodon-cpp}[mastodon-cpp] (at least: 0.111.3)
|
* link:{uri-mastodon-cpp}[mastodon-cpp] (at least: 0.111.3)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user