gitlab-ci: install distro's ninja
authorAndres Gomez <agomez@igalia.com>
Tue, 5 Mar 2019 11:55:17 +0000 (13:55 +0200)
committerAndres Gomez <agomez@igalia.com>
Tue, 5 Mar 2019 14:05:24 +0000 (14:05 +0000)
Ubuntu Bionic is shipping ninja 1.8.2. Therefore, we do not need to
download v1.6.0 manually any more.

Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci.yml
.gitlab-ci/Dockerfile.ubuntu

index bdb503251ab26f6d3badd0635ea54bc1f207aa32..ee67619cbc87157542555eed9b8a7075a11c9cf5 100644 (file)
@@ -16,7 +16,7 @@
 # The format of the tag is "%Y-%m-%d-${counter}" where ${counter} stays
 # at "01" unless you have multiple updates on the same day :)
 variables:
-  UBUNTU_TAG: 2019-02-27-01
+  UBUNTU_TAG: 2019-03-05-01
   UBUNTU_IMAGE: "$CI_REGISTRY_IMAGE/ubuntu:$UBUNTU_TAG"
   UBUNTU_IMAGE_MAIN: "registry.freedesktop.org/mesa/mesa/ubuntu:$UBUNTU_TAG"
 
index d935e92768c7443512f5022bafdf74623a3362ab..83ab85d6f899899e0f8ae6517d6a36af11004769 100644 (file)
@@ -51,7 +51,8 @@ RUN apt-get install -y \
       python-setuptools \
       python3.5 \
       python3-pip \
-      python3-setuptools
+      python3-setuptools \
+      ninja-build
 
 RUN apt-get install -y \
       libxcb-randr0
@@ -143,15 +144,6 @@ RUN wget $WAYLAND_RELEASES/$WAYLAND_PROTOCOLS_VERSION.tar.xz
 RUN tar -xvf $WAYLAND_PROTOCOLS_VERSION.tar.xz && rm $WAYLAND_PROTOCOLS_VERSION.tar.xz
 RUN (cd $WAYLAND_PROTOCOLS_VERSION && ./configure && make install) && rm -rf $WAYLAND_PROTOCOLS_VERSION
 
-
-RUN apt-get install -y unzip
-
-# Meson requires ninja >= 1.6, but xenial has 1.3.x
-RUN wget https://github.com/ninja-build/ninja/releases/download/v1.6.0/ninja-linux.zip
-RUN unzip ninja-linux.zip && rm ninja-linux.zip
-RUN mv ninja /usr/bin/
-
-
 RUN pip3 install 'meson>=0.49'
 RUN pip2 install 'scons>=2.4'