Commit 7632738160912f7767d57f24d998922c513d2d38

Patrick Steinhardt 2019-08-02T10:50:11

azure: deprecate Trusty in favor of Xenial Support for the LTS release Ubuntu 14.04 Trusty has been dropped in April 2019, but Azure is still using Trusty as its primary platform to build and test against. Let's deprecate it in favor of Xenial.

diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 231981d..48f6734 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -6,61 +6,61 @@ trigger:
 - maint/*
 
 jobs:
-- job: linux_amd64_trusty_gcc_openssl
-  displayName: 'Linux (amd64; Trusty; GCC; OpenSSL)'
+- job: linux_amd64_xenial_gcc_openssl
+  displayName: 'Linux (amd64; Xenial; GCC; OpenSSL)'
   pool:
     vmImage: 'Ubuntu 16.04'
   steps:
   - template: azure-pipelines/docker.yml
     parameters:
       docker:
-        image: trusty
-        base: ubuntu:trusty
+        image: xenial
+        base: ubuntu:xenial
       environmentVariables: |
        CC=gcc
        CMAKE_GENERATOR=Unix Makefiles
        CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DREGEX_BACKEND=builtin -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind
 
-- job: linux_amd64_trusty_gcc_mbedtls
-  displayName: 'Linux (amd64; Trusty; GCC; mbedTLS)'
+- job: linux_amd64_xenial_gcc_mbedtls
+  displayName: 'Linux (amd64; Xenial; GCC; mbedTLS)'
   pool:
     vmImage: 'Ubuntu 16.04'
   steps:
   - template: azure-pipelines/docker.yml
     parameters:
       docker:
-        image: trusty
-        base: ubuntu:trusty
+        image: xenial
+        base: ubuntu:xenial
       environmentVariables: |
        CC=gcc
        CMAKE_GENERATOR=Unix Makefiles
        CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DUSE_SHA1=HTTPS -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind
 
-- job: linux_amd64_trusty_clang_openssl
-  displayName: 'Linux (amd64; Trusty; Clang; OpenSSL)'
+- job: linux_amd64_xenial_clang_openssl
+  displayName: 'Linux (amd64; Xenial; Clang; OpenSSL)'
   pool:
     vmImage: 'Ubuntu 16.04'
   steps:
   - template: azure-pipelines/docker.yml
     parameters:
       docker:
-        image: trusty
-        base: ubuntu:trusty
+        image: xenial
+        base: ubuntu:xenial
       environmentVariables: |
        CC=clang
        CMAKE_GENERATOR=Unix Makefiles
        CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind
 
-- job: linux_amd64_trusty_clang_mbedtls
-  displayName: 'Linux (amd64; Trusty; Clang; mbedTLS)'
+- job: linux_amd64_xenial_clang_mbedtls
+  displayName: 'Linux (amd64; Xenial; Clang; mbedTLS)'
   pool:
     vmImage: 'Ubuntu 16.04'
   steps:
   - template: azure-pipelines/docker.yml
     parameters:
       docker:
-        image: trusty
-        base: ubuntu:trusty
+        image: xenial
+        base: ubuntu:xenial
       environmentVariables: |
        CC=clang
        CMAKE_GENERATOR=Unix Makefiles
diff --git a/azure-pipelines/docker/trusty b/azure-pipelines/docker/trusty
deleted file mode 100644
index 67e6ec1..0000000
--- a/azure-pipelines/docker/trusty
+++ /dev/null
@@ -1,20 +0,0 @@
-ARG BASE
-FROM $BASE
-ARG CACHEBUST=1
-
-RUN apt-get update
-RUN apt-get install -y curl apt-transport-https software-properties-common
-RUN curl -sSL "https://bintray.com/user/downloadSubjectPublicKey?username=bintray" | apt-key add -
-RUN echo "deb https://dl.bintray.com/libgit2/ci-dependencies trusty libgit2deps" >> /etc/apt/sources.list
-RUN add-apt-repository ppa:openjdk-r/ppa -y
-RUN apt-get update
-RUN apt-get -y install clang git cmake libssl-dev libcurl3 libcurl3-gnutls libcurl4-gnutls-dev libssh2-1-dev valgrind openssh-client openssh-server openjdk-8-jre libpcre3 libpcre3-dev
-
-RUN git clone --branch mbedtls-2.6.1 https://github.com/ARMmbed/mbedtls.git /tmp/mbedtls
-RUN (cd /tmp/mbedtls && scripts/config.pl set MBEDTLS_MD4_C 1)
-RUN (cd /tmp/mbedtls && CFLAGS=-fPIC cmake -DENABLE_PROGRAMS=OFF -DENABLE_TESTING=OFF -DUSE_SHARED_MBEDTLS_LIBRARY=OFF -DUSE_STATIC_MBEDTLS_LIBRARY=ON .)
-RUN (cd /tmp/mbedtls && cmake --build .)
-RUN (cd /tmp/mbedtls && make install)
-RUN rm -rf /tmp/mbedtls
-
-RUN mkdir /var/run/sshd
diff --git a/azure-pipelines/nightly.yml b/azure-pipelines/nightly.yml
index 8bcccd7..a221ede 100644
--- a/azure-pipelines/nightly.yml
+++ b/azure-pipelines/nightly.yml
@@ -2,64 +2,64 @@ resources:
 - repo: self
 
 jobs:
-- job: linux_amd64_trusty_gcc_openssl
-  displayName: 'Linux (amd64; Trusty; GCC; OpenSSL)'
+- job: linux_amd64_xenial_gcc_openssl
+  displayName: 'Linux (amd64; Xenial; GCC; OpenSSL)'
   pool:
     vmImage: 'Ubuntu 16.04'
   steps:
   - template: docker.yml
     parameters:
       docker:
-        image: trusty
-        base: ubuntu:trusty
+        image: xenial
+        base: ubuntu:xenial
       environmentVariables: |
        CC=gcc
        CMAKE_GENERATOR=Unix Makefiles
        CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DREGEX_BACKEND=builtin -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind
        RUN_INVASIVE_TESTS=true
 
-- job: linux_amd64_trusty_gcc_mbedtls
-  displayName: 'Linux (amd64; Trusty; GCC; mbedTLS)'
+- job: linux_amd64_xenial_gcc_mbedtls
+  displayName: 'Linux (amd64; Xenial; GCC; mbedTLS)'
   pool:
     vmImage: 'Ubuntu 16.04'
   steps:
   - template: docker.yml
     parameters:
       docker:
-        image: trusty
-        base: ubuntu:trusty
+        image: xenial
+        base: ubuntu:xenial
       environmentVariables: |
        CC=gcc
        CMAKE_GENERATOR=Unix Makefiles
        CMAKE_OPTIONS=-DUSE_HTTPS=mbedTLS -DUSE_SHA1=HTTPS -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind
        RUN_INVASIVE_TESTS=true
 
-- job: linux_amd64_trusty_clang_openssl
-  displayName: 'Linux (amd64; Trusty; Clang; OpenSSL)'
+- job: linux_amd64_xenial_clang_openssl
+  displayName: 'Linux (amd64; Xenial; Clang; OpenSSL)'
   pool:
     vmImage: 'Ubuntu 16.04'
   steps:
   - template: docker.yml
     parameters:
       docker:
-        image: trusty
-        base: ubuntu:trusty
+        image: xenial
+        base: ubuntu:xenial
       environmentVariables: |
        CC=clang
        CMAKE_GENERATOR=Unix Makefiles
        CMAKE_OPTIONS=-DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind
        RUN_INVASIVE_TESTS=true
 
-- job: linux_amd64_trusty_clang_mbedtls
-  displayName: 'Linux (amd64; Trusty; Clang; mbedTLS)'
+- job: linux_amd64_xenial_clang_mbedtls
+  displayName: 'Linux (amd64; Xenial; Clang; mbedTLS)'
   pool:
     vmImage: 'Ubuntu 16.04'
   steps:
   - template: docker.yml
     parameters:
       docker:
-        image: trusty
-        base: ubuntu:trusty
+        image: xenial
+        base: ubuntu:xenial
       environmentVariables: |
        CC=clang
        CMAKE_GENERATOR=Unix Makefiles