Browse Source

Updated drone recipe

tastytea 1 month ago
parent
commit
6c0976baa7
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
2 changed files with 63 additions and 15 deletions
  1. 62
    14
      .drone.yml
  2. 1
    1
      CMakeLists.txt

+ 62
- 14
.drone.yml View File

@@ -1,52 +1,100 @@
1 1
 pipeline:
2 2
   gcc5:
3
-    image: gcc:5
3
+    image: debian:jessie-slim
4 4
     pull: true
5
+    environment:
6
+      - CXX=g++-5
7
+      - CXXFLAGS=-pipe -O2
5 8
     commands:
6
-      - echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
9
+      - rm /etc/apt/apt.conf.d/docker-clean
7 10
       - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
11
+      - echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
12
+      - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
13
+      - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
14
+      - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
8 15
       - apt-get update -q
9
-      - apt-get install -qyt stretch cmake
10
-      - apt-get install -qy libconfig++-dev libxdg-basedir-dev
16
+      - apt-get install -qy -t trusty g++-5
17
+      - apt-get install -qy -t jessie-backports cmake
18
+      - apt-get install -qy pkg-config libconfig++-dev libxdg-basedir-dev
11 19
       - rm -rf build && mkdir -p build && cd build
12 20
       - cmake ..
13 21
       - make VERBOSE=1
14 22
       - make install DESTDIR=install
23
+    volumes:
24
+      - /var/cache/debian-package-cache:/var/cache/apt/archives
25
+
15 26
   gcc6:
16
-    image: gcc:6
27
+    image: debian:jessie-slim
17 28
     pull: true
29
+    environment:
30
+      - CXX=g++-6
31
+      - CXXFLAGS=-pipe -O2
18 32
     commands:
19
-      - echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
33
+      - rm /etc/apt/apt.conf.d/docker-clean
20 34
       - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
35
+      - echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
36
+      - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
37
+      - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
38
+      - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
21 39
       - apt-get update -q
22
-      - apt-get install -qyt stretch cmake
23
-      - apt-get install -qy libconfig++-dev libxdg-basedir-dev
40
+      - apt-get install -qy -t trusty g++-6
41
+      - apt-get install -qy -t jessie-backports cmake
42
+      - apt-get install -qy pkg-config libconfig++-dev libxdg-basedir-dev
24 43
       - rm -rf build && mkdir -p build && cd build
25 44
       - cmake ..
26 45
       - make VERBOSE=1
27 46
       - make install DESTDIR=install
47
+    volumes:
48
+      - /var/cache/debian-package-cache:/var/cache/apt/archives
49
+
28 50
   gcc7:
29
-    image: gcc:7
51
+    image: debian:jessie-slim
30 52
     pull: true
53
+    environment:
54
+      - CXX=g++-7
55
+      - CXXFLAGS=-pipe -O2
31 56
     commands:
57
+      - rm /etc/apt/apt.conf.d/docker-clean
58
+      - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
59
+      - echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
60
+      - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
61
+      - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
62
+      - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
32 63
       - apt-get update -q
33
-      - apt-get install -qy build-essential cmake pkg-config
34
-      - apt-get install -qy libconfig++-dev libxdg-basedir-dev
64
+      - apt-get install -qy -t trusty g++-7
65
+      - apt-get install -qy -t jessie-backports cmake
66
+      - apt-get install -qy pkg-config libconfig++-dev libxdg-basedir-dev
35 67
       - rm -rf build && mkdir -p build && cd build
36 68
       - cmake ..
37 69
       - make VERBOSE=1
38 70
       - make install DESTDIR=install
71
+    volumes:
72
+      - /var/cache/debian-package-cache:/var/cache/apt/archives
73
+
39 74
   gcc8:
40
-    image: gcc:8
75
+    image: debian:jessie-slim
41 76
     pull: true
77
+    environment:
78
+      - CXX=g++-8
79
+      - CXXFLAGS=-pipe -O2
42 80
     commands:
81
+      - rm /etc/apt/apt.conf.d/docker-clean
82
+      - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
83
+      - echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
84
+      - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
85
+      - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
86
+      - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
43 87
       - apt-get update -q
44
-      - apt-get install -qy build-essential cmake pkg-config
45
-      - apt-get install -qy libconfig++-dev libxdg-basedir-dev
88
+      - apt-get install -qy -t trusty g++-8
89
+      - apt-get install -qy -t jessie-backports cmake
90
+      - apt-get install -qy pkg-config libconfig++-dev libxdg-basedir-dev
46 91
       - rm -rf build && mkdir -p build && cd build
47 92
       - cmake ..
48 93
       - make VERBOSE=1
49 94
       - make install DESTDIR=install
95
+    volumes:
96
+      - /var/cache/debian-package-cache:/var/cache/apt/archives
97
+
50 98
   notify:
51 99
     image: drillster/drone-email
52 100
     pull: true

+ 1
- 1
CMakeLists.txt View File

@@ -1,4 +1,4 @@
1
-cmake_minimum_required (VERSION 3.7)
1
+cmake_minimum_required (VERSION 3.1)
2 2
 project(xdgcfg
3 3
         VERSION 0.2.2
4 4
         LANGUAGES CXX

Loading…
Cancel
Save