[beast: 3/4] TRAVIS: defer env variable definitions to increase docker layer reuse
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 3/4] TRAVIS: defer env variable definitions to increase docker layer reuse
- Date: Thu, 7 Apr 2016 11:43:03 +0000 (UTC)
commit 138ab5c049f8f69385a0defeddd2b6cee7b0127c
Author: Tim Janik <timj gnu org>
Date: Tue Apr 5 22:53:55 2016 +0200
TRAVIS: defer env variable definitions to increase docker layer reuse
Signed-off-by: Tim Janik <timj gnu org>
.travis.docker | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/.travis.docker b/.travis.docker
index f7a6588..17fd251 100644
--- a/.travis.docker
+++ b/.travis.docker
@@ -6,13 +6,6 @@ MAINTAINER Tim Janik <timj gnu org>
# Carry over enviroment variables
ENV EMAIL beast gnome org
-ENV DIST "@DIST@"
-ENV DISTNAME "@DISTNAME@"
-ENV DISTRELEASE "@DISTRELEASE@"
-ENV BINTRAYREPO "@BINTRAYREPO@"
-ENV TRAVIS_JOB_NUMBER "@TRAVIS_JOB_NUMBER@"
-ENV http_proxy "@http_proxy@"
-ENV INTENT "@INTENT@"
# Automation tools and convenience commands
ENV DEBIAN_FRONTEND noninteractive
@@ -24,10 +17,12 @@ RUN echo '#!/bin/bash\n"$@" || { sleep 10 ; "$@" ; } || { sleep 90 ; "$@" ; }' >
| tee -a /etc/bash.bashrc >> /root/.bashrc
# Ensure uptodate distribution and access to the bintray.com repositories
+ENV http_proxy "@http_proxy@"
RUN retry apt-get update && retry apt-get -y install apt-utils && retry apt-get -y upgrade && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61
# Install Rapicorn packages
+ENV BINTRAYREPO "@BINTRAYREPO@"
RUN retry apt-get -y install apt-transport-https ca-certificates && \
echo "$BINTRAYREPO" | tee /etc/apt/sources.list.d/bintray-beast-team.list && \
retry apt-get update && retry apt-get -y install rapicorn
@@ -58,6 +53,7 @@ RUN nice make dist
RUN nice make uninstall
# Carry out distcheck test if desired
+ENV INTENT "@INTENT@"
RUN [ $INTENT = distcheck ] || exit 0 && \
nice make distcheck
@@ -71,6 +67,8 @@ WORKDIR /usr/src/
# Create deb packages as follows:
# Eval configuration, prepare debian source tarball, prepare debian/ directory,
# update 'changelog', install dependencies, build debian packages.
+ENV DISTRELEASE "@DISTRELEASE@"
+ENV TRAVIS_JOB_NUMBER "@TRAVIS_JOB_NUMBER@"
RUN [ $INTENT = deb ] || exit 0 && \
eval `beast/buildtool.sh config` && \
DIST_TARBALL="$PACKAGE/$PACKAGE-$UPSVERSION.tar.xz" && \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]