Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Commit

Permalink
Add: clang-3.9 Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
LordAro committed Jun 29, 2019
1 parent 8143051 commit 162e9e7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azure-pipelines-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ jobs:
linux-amd64-clang-3.8:
Folder: ci-linux-amd64-clang-3.8
Tag: linux-amd64-clang-3.8
linux-amd64-clang-3.9:
Folder: ci-linux-amd64-clang-3.9
Tag: linux-amd64-clang-3.9
linux-amd64-gcc-6:
Folder: ci-linux-amd64-gcc-6
Tag: linux-amd64-gcc-6
Expand Down
18 changes: 18 additions & 0 deletions ci-linux-amd64-clang-3.9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM openttd/base:linux-debian-stretch-amd64

RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && \
apt-get install -y --no-install-recommends \
clang-3.9=1:3.9* \
&& rm -rf /var/lib/apt/lists/*

# Install openttd-opengfx, so we can easier run the regression tests
RUN apt-get update && apt-get install -y --no-install-recommends \
openttd-opengfx \
&& rm -rf /var/lib/apt/lists/*

COPY files/run.sh /usr/bin/

WORKDIR /workdir/source

ENTRYPOINT ["run.sh"]
CMD []
20 changes: 20 additions & 0 deletions ci-linux-amd64-clang-3.9/files/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

set -e

echo ""
echo "Validating source"
echo " OS: Linux"
echo " Compiler: clang 3.9"
echo " Arch: amd64"
echo ""

if [ -e "CMakeLists.txt" ]; then
mkdir build
cd build
cmake ..
else
./configure --prefix-dir=/usr
fi

make -j2 all test

0 comments on commit 162e9e7

Please sign in to comment.