Browse Source

CI: Updated drone recipe

tastytea 3 weeks ago
parent
commit
1875284670
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
1 changed files with 26 additions and 36 deletions
  1. 26
    36
      .drone.yml

+ 26
- 36
.drone.yml View File

@@ -1,9 +1,13 @@
1 1
 pipeline:
2
-  gcc8:
2
+  gcc5:
3 3
     image: debian:stretch-slim
4 4
     pull: true
5
+    when:
6
+      event: [push, pull_request]
5 7
     environment:
6 8
       - LANG=C.utf8
9
+      - CXX=g++-5
10
+      - CXXFLAGS=-pipe -O2
7 11
     commands:
8 12
       - rm /etc/apt/apt.conf.d/docker-clean
9 13
       - apt-get update -q
@@ -15,9 +19,7 @@ pipeline:
15 19
       - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
16 20
       - apt-get update -q
17 21
       - apt-get install -qy build-essential cmake pkg-config
18
-      - apt-get install -qy -t xenial g++-8
19
-      - update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
20
-      - update-alternatives --set g++ /usr/bin/g++-8
22
+      - apt-get install -qy -t xenial g++-5
21 23
       - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
22 24
       - apt-get install -qy -t sid libcurlpp-dev
23 25
       - apt-get install -qy rpm file
@@ -25,34 +27,22 @@ pipeline:
25 27
       - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
26 28
       - make VERBOSE=1
27 29
       - make install DESTDIR=install
28
-      - ctest ..
29
-      - make package
30
-      - cmake -DWITH_DEB=ON ..
31
-      - make package
32
-      - cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
33
-      - make package
34 30
     volumes:
35 31
       - /var/cache/debian-package-cache:/var/cache/apt/archives
36 32
 
37
-  gcc7:
33
+  gcc6:
38 34
     image: debian:stretch-slim
39 35
     pull: true
40 36
     environment:
41 37
       - LANG=C.utf8
38
+      - CXX=g++-6
39
+      - CXXFLAGS=-pipe -O2
42 40
     commands:
43 41
       - rm /etc/apt/apt.conf.d/docker-clean
44
-      - apt-get update -q
45 42
       - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
46 43
       - echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
47
-      - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
48
-      - apt-get install -qy gnupg
49
-      - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
50
-      - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
51 44
       - apt-get update -q
52 45
       - apt-get install -qy build-essential cmake pkg-config
53
-      - apt-get install -qy -t xenial g++-7
54
-      - update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 100
55
-      - update-alternatives --set g++ /usr/bin/g++-7
56 46
       - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
57 47
       - apt-get install -qy -t sid libcurlpp-dev
58 48
       - apt-get install -qy rpm file
@@ -69,11 +59,15 @@ pipeline:
69 59
     volumes:
70 60
       - /var/cache/debian-package-cache:/var/cache/apt/archives
71 61
 
72
-  gcc5:
62
+  gcc7:
73 63
     image: debian:stretch-slim
74 64
     pull: true
65
+    when:
66
+      event: [push, pull_request]
75 67
     environment:
76 68
       - LANG=C.utf8
69
+      - CXX=g++-7
70
+      - CXXFLAGS=-pipe -O2
77 71
     commands:
78 72
       - rm /etc/apt/apt.conf.d/docker-clean
79 73
       - apt-get update -q
@@ -85,9 +79,7 @@ pipeline:
85 79
       - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
86 80
       - apt-get update -q
87 81
       - apt-get install -qy build-essential cmake pkg-config
88
-      - apt-get install -qy -t xenial g++-5
89
-      - update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
90
-      - update-alternatives --set g++ /usr/bin/g++-5
82
+      - apt-get install -qy -t xenial g++-7
91 83
       - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
92 84
       - apt-get install -qy -t sid libcurlpp-dev
93 85
       - apt-get install -qy rpm file
@@ -95,26 +87,30 @@ pipeline:
95 87
       - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
96 88
       - make VERBOSE=1
97 89
       - make install DESTDIR=install
98
-      - ctest ..
99
-      - make package
100
-      - cmake -DWITH_DEB=ON ..
101
-      - make package
102
-      - cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
103
-      - make package
104 90
     volumes:
105 91
       - /var/cache/debian-package-cache:/var/cache/apt/archives
106 92
 
107
-  gcc6:
93
+  gcc8:
108 94
     image: debian:stretch-slim
109 95
     pull: true
96
+    when:
97
+      event: [push, pull_request]
110 98
     environment:
111 99
       - LANG=C.utf8
100
+      - CXX=g++-8
101
+      - CXXFLAGS=-pipe -O2
112 102
     commands:
113 103
       - rm /etc/apt/apt.conf.d/docker-clean
104
+      - apt-get update -q
114 105
       - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
115 106
       - echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
107
+      - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
108
+      - apt-get install -qy gnupg
109
+      - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
110
+      - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
116 111
       - apt-get update -q
117 112
       - apt-get install -qy build-essential cmake pkg-config
113
+      - apt-get install -qy -t xenial g++-8
118 114
       - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev
119 115
       - apt-get install -qy -t sid libcurlpp-dev
120 116
       - apt-get install -qy rpm file
@@ -122,12 +118,6 @@ pipeline:
122 118
       - cmake -DWITH_EXAMPLES=ON -DWITH_TESTS=ON ..
123 119
       - make VERBOSE=1
124 120
       - make install DESTDIR=install
125
-      - ctest ..
126
-      - make package
127
-      - cmake -DWITH_DEB=ON ..
128
-      - make package
129
-      - cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
130
-      - make package
131 121
     volumes:
132 122
       - /var/cache/debian-package-cache:/var/cache/apt/archives
133 123
 

Loading…
Cancel
Save