This commit is contained in:
parent
4c26c25c91
commit
83abaf81b6
98
.drone.yml
98
.drone.yml
|
@ -1,11 +1,16 @@
|
|||
kind: pipeline
|
||||
name: always
|
||||
name: x86_64 build
|
||||
|
||||
volumes:
|
||||
- name: debian-package-cache
|
||||
host:
|
||||
path: /var/cache/debian-package-cache
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: docker:git
|
||||
|
@ -34,26 +39,6 @@ steps:
|
|||
- name: debian-package-cache
|
||||
path: /var/cache/apt/archives
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: on_push
|
||||
|
||||
volumes:
|
||||
- name: debian-package-cache
|
||||
host:
|
||||
path: /var/cache/debian-package-cache
|
||||
|
||||
trigger:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
steps:
|
||||
- name: submodules
|
||||
image: docker:git
|
||||
commands:
|
||||
- git submodule init
|
||||
- git submodule update --recursive
|
||||
|
||||
- name: gcc5
|
||||
image: debian:stretch-slim
|
||||
|
@ -81,12 +66,12 @@ steps:
|
|||
- name: debian-package-cache
|
||||
path: /var/cache/apt/archives
|
||||
|
||||
- name: gcc7
|
||||
- name: gcc9
|
||||
image: debian:stretch-slim
|
||||
pull: always
|
||||
environment:
|
||||
LANG: C.utf8
|
||||
CXX: g++-7
|
||||
CXX: g++-9
|
||||
CXXFLAGS: -pipe -O2
|
||||
commands:
|
||||
- rm /etc/apt/apt.conf.d/docker-clean
|
||||
|
@ -97,33 +82,7 @@ steps:
|
|||
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
||||
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
||||
- apt-get update -q
|
||||
- apt-get install -qy -t xenial g++-7
|
||||
- apt-get install -qy cmake pkg-config
|
||||
- apt-get install -qy libconfig++-dev libxdg-basedir-dev asciidoc
|
||||
- rm -rf build && mkdir -p build && cd build
|
||||
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
- make VERBOSE=1
|
||||
volumes:
|
||||
- name: debian-package-cache
|
||||
path: /var/cache/apt/archives
|
||||
|
||||
- name: gcc8
|
||||
image: debian:stretch-slim
|
||||
pull: always
|
||||
environment:
|
||||
LANG: C.utf8
|
||||
CXX: g++-8
|
||||
CXXFLAGS: -pipe -O2
|
||||
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://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 -t xenial g++-8
|
||||
- apt-get install -qy -t xenial g++-9
|
||||
- apt-get install -qy cmake pkg-config
|
||||
- apt-get install -qy libconfig++-dev libxdg-basedir-dev asciidoc
|
||||
- rm -rf build && mkdir -p build && cd build
|
||||
|
@ -152,28 +111,6 @@ steps:
|
|||
- name: debian-package-cache
|
||||
path: /var/cache/apt/archives
|
||||
|
||||
- name: clang5
|
||||
image: debian:stretch-slim
|
||||
pull: always
|
||||
environment:
|
||||
LANG: C.utf8
|
||||
CXX: clang++-5.0
|
||||
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 stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
|
||||
- apt-get update -q
|
||||
- apt-get install -qy -t stretch-backports clang-5.0
|
||||
- apt-get install -qy cmake pkg-config
|
||||
- apt-get install -qy libconfig++-dev libxdg-basedir-dev asciidoc
|
||||
- rm -rf build && mkdir -p build && cd build
|
||||
- cmake -DCMAKE_INSTALL_PREFIX=/usr ..
|
||||
- make VERBOSE=1
|
||||
volumes:
|
||||
- name: debian-package-cache
|
||||
path: /var/cache/apt/archives
|
||||
|
||||
- name: clang6
|
||||
image: debian:stretch-slim
|
||||
pull: always
|
||||
|
@ -196,23 +133,6 @@ steps:
|
|||
- name: debian-package-cache
|
||||
path: /var/cache/apt/archives
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: after
|
||||
|
||||
depends_on:
|
||||
- always
|
||||
- on_push
|
||||
|
||||
trigger:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
steps:
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
pull: always
|
||||
|
|
|
@ -22,8 +22,8 @@ https://schlomp.space/tastytea/overlay[repository].
|
|||
|
||||
==== Dependencies
|
||||
|
||||
* C++ compiler (tested: https://gcc.gnu.org/[gcc] 5/6/7/8,
|
||||
https://llvm.org/[clang] 3/5/6)
|
||||
* C++ compiler (tested: https://gcc.gnu.org/[gcc] 5/6/8/9,
|
||||
https://llvm.org/[clang] 3/6)
|
||||
* https://cmake.org/[cmake] (at least 3.2)
|
||||
* http://repo.or.cz/w/libxdg-basedir.git[libxdg-basedir] (tested: 1.2)
|
||||
* https://github.com/hyperrealm/libconfig[libconfig++] (tested: 1.5)
|
||||
|
|
Reference in New Issue
Block a user