Re-ordered drone recipe.

This commit is contained in:
tastytea 2019-05-17 00:39:09 +02:00
parent 3f3964973a
commit 55cec75654
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 26 additions and 23 deletions

View File

@ -18,6 +18,30 @@ steps:
source: https://raw.githubusercontent.com/badaix/popl/v1.2.0/include/popl.hpp
destination: src/popl.hpp
- name: gcc6
image: debian:stretch-slim
pull: always
environment:
LANG: C.utf8
CXX: g++-6
CXXFLAGS: -pipe -O2
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- 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
- apt-get update -q
- apt-get install -qy g++-6 cmake pkg-config
- apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev libvsqlitepp-dev libboost-system-dev libboost-filesystem-dev asciidoc catch
- apt-get install -qy -t sid libcurlpp-dev
- rm -rf build && mkdir -p build && cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_TESTS=YES ..
- make VERBOSE=1
- make install DESTDIR=install
- ctest
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: gcc5
image: debian:stretch-slim
pull: always
@ -46,29 +70,6 @@ steps:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: gcc6
image: debian:stretch-slim
pull: always
environment:
LANG: C.utf8
CXX: g++-6
CXXFLAGS: -pipe -O2
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- 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
- apt-get update -q
- apt-get install -qy g++-6 cmake pkg-config
- apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev libvsqlitepp-dev libboost-system-dev libboost-filesystem-dev asciidoc catch
- apt-get install -qy -t sid libcurlpp-dev
- rm -rf build && mkdir -p build && cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DWITH_TESTS=YES ..
- make VERBOSE=1
- ctest
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: gcc7
image: debian:stretch-slim
pull: always

View File

@ -40,6 +40,7 @@ emerge -a www-misc/remwharead
** Tests: https://github.com/catchorg/Catch2[catch] (tested: 2.5 / 1.2)
.Install dependencies in Debian stretch.
====
[source,zsh]
----
echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
@ -51,6 +52,7 @@ apt-get install -t sid libcurlpp-dev
wget -O src/popl.hpp https://raw.githubusercontent.com/badaix/popl/v1.2.0/include/popl.hpp
CXX="g++-6"
----
====
==== Get sourcecode