Browse Source

CI: Added clang 3

tags/0.4.0
tastytea 5 months ago
parent
commit
b74db00ff3
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
2 changed files with 21 additions and 1 deletions
  1. 20
    0
      .drone.yml
  2. 1
    1
      README.md

+ 20
- 0
.drone.yml View File

@@ -100,6 +100,26 @@ pipeline:
100 100
     volumes:
101 101
       - /var/cache/debian-package-cache:/var/cache/apt/archives
102 102
 
103
+  clang3:
104
+    image: debian:stretch-slim
105
+    pull: true
106
+    when:
107
+      event: [push, pull_request]
108
+    environment:
109
+      - LANG=C.utf8
110
+      - CXX=clang++
111
+      - CXXFLAGS=-pipe -O2
112
+    commands:
113
+      - rm /etc/apt/apt.conf.d/docker-clean
114
+      - apt-get update -q
115
+      - apt-get install -qy clang cmake pkg-config
116
+      - apt-get install -qy libconfig++-dev libxdg-basedir-dev
117
+      - rm -rf build && mkdir -p build && cd build
118
+      - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
119
+      - make VERBOSE=1
120
+    volumes:
121
+      - /var/cache/debian-package-cache:/var/cache/apt/archives
122
+
103 123
   clang5:
104 124
     image: debian:stretch-slim
105 125
     pull: true

+ 1
- 1
README.md View File

@@ -9,7 +9,7 @@ It does compile the file every time at the moment.
9 9
 ## Usage
10 10
 
11 11
 Use `#!/usr/bin/env compilescript` as shebang and write the compiler arguments
12
-in the line below with the prefix: `//compilescript:`
12
+in the line below with the prefix: `//compilescript:`.
13 13
 
14 14
 ### Example
15 15
 

Loading…
Cancel
Save