diff --git a/.drone.yml b/.drone.yml index e3bc0a3..7d4f00b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/README.adoc b/README.adoc index 0c07de8..e347eb3 100644 --- a/README.adoc +++ b/README.adoc @@ -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