CI: Disable Ubuntu build.
All checks were successful
continuous-integration/drone/push Build is passing

CMake is too old for restclient-cpp.
This commit is contained in:
tastytea 2019-12-28 08:15:32 +01:00
parent ca2b9a16e4
commit 8c77df1ee1
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -19,11 +19,11 @@ steps:
source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.5/libmastodon-cpp_0.111.5-0_buster_amd64.deb source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.5/libmastodon-cpp_0.111.5-0_buster_amd64.deb
destination: mastodon-cpp_buster.deb destination: mastodon-cpp_buster.deb
- name: download mastodon-cpp for bionic # - name: download mastodon-cpp for bionic
image: plugins/download # image: plugins/download
settings: # settings:
source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.5/libmastodon-cpp_0.111.5-0_bionic_amd64.deb # source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.5/libmastodon-cpp_0.111.5-0_bionic_amd64.deb
destination: mastodon-cpp_bionic.deb # destination: mastodon-cpp_bionic.deb
# Workaround until the debian packages are fixed. # Workaround until the debian packages are fixed.
- name: download restclient-cpp source - name: download restclient-cpp source
@ -65,38 +65,32 @@ steps:
- name: debian-package-cache - name: debian-package-cache
path: /var/cache/apt/archives path: /var/cache/apt/archives
- name: GCC 7 on Ubuntu bionic # - name: GCC 7 on Ubuntu bionic
image: ubuntu:bionic # image: ubuntu:bionic
pull: always # pull: always
environment: # environment:
CXX: g++-7 # CXX: g++-7
CXXFLAGS: -pipe -O2 # CXXFLAGS: -pipe -O2
DEBIAN_FRONTEND: noninteractive # DEBIAN_FRONTEND: noninteractive
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' # - alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
- apt-get update -q # - apt-get update -q
- echo "deb https://packagecloud.io/mrtazz/restclient-cpp/ubuntu/ bionic main" > /etc/apt/sources.list.d/restclient-cpp.list # - echo "deb https://packagecloud.io/mrtazz/restclient-cpp/ubuntu/ bionic main" > /etc/apt/sources.list.d/restclient-cpp.list
- apt-get install -qq curl gnupg apt-transport-https # - apt-get install -qq curl gnupg apt-transport-https
- curl -L https://packagecloud.io/mrtazz/restclient-cpp/gpgkey | apt-key add - # - curl -L https://packagecloud.io/mrtazz/restclient-cpp/gpgkey | apt-key add -
- apt-get update -q # - apt-get update -q
- apt-get install -qq build-essential cmake asciidoc # - apt-get install -qq build-essential cmake asciidoc
- apt-get install -qq libboost-filesystem-dev libboost-log-dev libboost-regex-dev libjsoncpp-dev catch libcurl4-openssl-dev restclient-cpp libpoco-dev # - apt-get install -qq libboost-filesystem-dev libboost-log-dev libboost-regex-dev libjsoncpp-dev catch libcurl4-openssl-dev restclient-cpp libpoco-dev
- apt-get -qq install ./mastodon-cpp_bionic.deb # - apt-get -qq install ./mastodon-cpp_bionic.deb
- tar -xf restclient-cpp.tar.gz # - rm -rf build && mkdir -p build && cd build
- cd restclient-cpp-* # - cmake ..
- cmake -DCMAKE_INSTALL_PREFIX=/usr . # - make VERBOSE=1
- cmake --build . # - make install DESTDIR=install
- make install # volumes:
- cd -- # - name: debian-package-cache
- rm -rf build && mkdir -p build && cd build # path: /var/cache/apt/archives
- 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