75 lines
2.9 KiB
YAML
75 lines
2.9 KiB
YAML
pipeline:
|
|
download:
|
|
image: plugins/download
|
|
pull: true
|
|
source: https://schlomp.space/attachments/713cd43b-8208-4e37-9fad-740daf7bdfa9
|
|
destination: mastodon-cpp.deb
|
|
gcc8:
|
|
image: gcc:8
|
|
pull: true
|
|
commands:
|
|
- echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
|
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
|
- apt-get update -q
|
|
- apt-get install -qy cmake libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
|
- apt-get install -qy -t buster libcurlpp-dev
|
|
- dpkg -i mastodon-cpp.deb
|
|
- rm -rf build && mkdir -p build && cd build
|
|
- cmake ..
|
|
- make VERBOSE=1
|
|
- make install DESTDIR=install
|
|
gcc7:
|
|
image: gcc:7
|
|
pull: true
|
|
commands:
|
|
- echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
|
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
|
- apt-get update -q
|
|
- apt-get install -qy cmake libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
|
- apt-get install -qy -t buster libcurlpp-dev
|
|
- dpkg -i mastodon-cpp.deb
|
|
- rm -rf build && mkdir -p build && cd build
|
|
- cmake ..
|
|
- make VERBOSE=1
|
|
- make install DESTDIR=install
|
|
gcc6:
|
|
image: gcc:6
|
|
pull: true
|
|
commands:
|
|
- echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
|
|
- echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
|
|
- echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
|
|
- apt-get update -q
|
|
- apt-get install -qy libcurl4-openssl-dev libboost-all-dev
|
|
- apt-get install -qy -t jessie-backports cmake libjsoncpp-dev
|
|
- apt-get install -qy -t buster libcurlpp-dev
|
|
- dpkg -i mastodon-cpp.deb
|
|
- rm -rf build && mkdir -p build && cd build
|
|
- cmake ..
|
|
- make VERBOSE=1
|
|
- make install DESTDIR=install
|
|
# gcc5:
|
|
# image: gcc:5
|
|
# pull: true
|
|
# commands:
|
|
# - echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
|
|
# - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
|
|
# - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
|
|
# - apt-get update -q
|
|
# - apt-get install -qy libcurl4-openssl-dev libboost-all-dev
|
|
# - apt-get install -qy -t jessie-backports cmake libjsoncpp-dev
|
|
# - apt-get install -qy -t buster libcurlpp-dev
|
|
# - dpkg -i mastodon-cpp.deb
|
|
# - rm -rf build && mkdir -p build && cd build
|
|
# - cmake ..
|
|
# - make VERBOSE=1
|
|
# - make install DESTDIR=install
|
|
notify:
|
|
image: drillster/drone-email
|
|
pull: true
|
|
host: cryptoparty-celle.de
|
|
secrets: [ email_username, email_password ]
|
|
from: drone@tzend.de
|
|
when:
|
|
status: [ changed, failure ]
|