Browse Source

Enhanced CI

tastytea 7 months ago
parent
commit
b744fb0903
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
1 changed files with 52 additions and 6 deletions
  1. 52
    6
      .drone.yml

+ 52
- 6
.drone.yml View File

@@ -2,20 +2,66 @@ pipeline:
2 2
   download:
3 3
     image: plugins/download
4 4
     pull: true
5
-    source: https://schlomp.space/attachments/41e6e007-d8fb-483e-90e6-68b98e114562
5
+    source: https://schlomp.space/attachments/761761c0-b16b-491e-a6ae-18dca23e82dd
6 6
     destination: mastodon-cpp.deb
7
-  build:
8
-    image: debian:stretch-slim
7
+  # gcc5:
8
+  #   image: gcc:5
9
+  #   pull: true
10
+  #   commands:
11
+  #     - rm /usr/local/lib64/libstdc++.so.6
12
+  #     - echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
13
+  #     - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
14
+  #     - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
15
+  #     - apt-get update -q
16
+  #     - apt-get install -qyt stretch cmake libjsoncpp-dev
17
+  #     - apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev
18
+  #     - apt-get install -qy -t buster libcurlpp-dev
19
+  #     - dpkg -i mastodon-cpp.deb
20
+  #     - rm -rf build && mkdir -p build && cd build
21
+  #     - cmake ..
22
+  #     - make VERBOSE=1
23
+  #     - make install DESTDIR=install
24
+  gcc6:
25
+    image: gcc:6
26
+    pull: true
27
+    commands:
28
+      - echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
29
+      - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
30
+      - echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
31
+      - apt-get update -q
32
+      - apt-get install -qyt stretch cmake libjsoncpp-dev
33
+      - apt-get install -qy libcurl4-openssl-dev libxdg-basedir-dev
34
+      - apt-get install -qy -t buster libcurlpp-dev
35
+      - dpkg -i mastodon-cpp.deb
36
+      - rm -rf build && mkdir -p build && cd build
37
+      - cmake ..
38
+      - make VERBOSE=1
39
+      - make install DESTDIR=install
40
+  gcc7:
41
+    image: gcc:7
42
+    pull: true
43
+    commands:
44
+      - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
45
+      - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
46
+      - apt-get update -q
47
+      - apt-get install -qy cmake libcurl4-openssl-dev libjsoncpp-dev libxdg-basedir-dev
48
+      - apt-get install -qy -t buster libcurlpp-dev
49
+      - dpkg -i mastodon-cpp.deb
50
+      - rm -rf build && mkdir -p build && cd build
51
+      - cmake ..
52
+      - make VERBOSE=1
53
+      - make install DESTDIR=install
54
+  gcc8:
55
+    image: gcc:8
9 56
     pull: true
10 57
     commands:
11 58
       - echo "deb http://deb.debian.org/debian buster main" >> /etc/apt/sources.list.d/buster.list
12 59
       - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
13 60
       - apt-get update -q
14
-      - apt-get install -qy build-essential cmake pkg-config
15
-      - apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libxdg-basedir-dev
61
+      - apt-get install -qy cmake libcurl4-openssl-dev libjsoncpp-dev libxdg-basedir-dev
16 62
       - apt-get install -qy -t buster libcurlpp-dev
17 63
       - dpkg -i mastodon-cpp.deb
18
-      - mkdir -p build && cd build
64
+      - rm -rf build && mkdir -p build && cd build
19 65
       - cmake ..
20 66
       - make VERBOSE=1
21 67
       - make install DESTDIR=install

Loading…
Cancel
Save