From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] common/travis/docker.sh: add control variables
Date: Sat, 28 Sep 2019 06:17:28 +0200 [thread overview]
Message-ID: <20190928041728.n5XXqB12MydhkI0el15R8bQgwgG8OzvVe4f8vcF-Ok8@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14742@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
There is an updated pull request by bobertlo against master on the void-packages repository
https://github.com/bobertlo/void-packages travis-docker
https://github.com/void-linux/void-packages/pull/14742
common/travis/docker.sh: add control variables
for more flexible local testing using existing tools
A patch file from https://github.com/void-linux/void-packages/pull/14742.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-travis-docker-14742.patch --]
[-- Type: text/x-diff, Size: 1428 bytes --]
From 3edfcf2ed63d1ea4da06388f4cdeda3815ebf80c Mon Sep 17 00:00:00 2001
From: Robert Lowry <bobertlo@gmail.com>
Date: Thu, 26 Sep 2019 11:19:54 -0500
Subject: [PATCH] common/travis/docker.sh: add control variables
for more flexible local testing using existing tools
---
.travis.yml | 1 +
common/travis/docker.sh | 10 ++++++----
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index d0ffe216573..608eae6ea34 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,7 @@ git:
env:
global:
- PATH=$PATH:/tmp/bin
+ - DOCKER_BASE=voidlinux/masterdir
- TAG=2019042701
matrix:
diff --git a/common/travis/docker.sh b/common/travis/docker.sh
index 1784cd4a54e..9b98b42c016 100755
--- a/common/travis/docker.sh
+++ b/common/travis/docker.sh
@@ -4,13 +4,15 @@
[ "$XLINT" ] && exit 0
-/bin/echo -e "\x1b[32mPulling docker image for $BOOTSTRAP from $TAG...\x1b[0m"
-docker pull voidlinux/masterdir-$BOOTSTRAP:$TAG
+DOCKER_NAME=${DOCKER_NAME:-void}
+
+/bin/echo -e "\x1b[32mPulling docker image $DOCKER_BASE-$BOOTSTRAP:$TAG...\x1b[0m"
+docker pull $DOCKER_BASE-$BOOTSTRAP:$TAG
docker run -d \
- --name void \
+ --name $DOCKER_NAME \
-v "$(pwd)":/hostrepo \
-v /tmp:/tmp \
-e XLINT="$XLINT" \
-e PATH="$PATH" \
- voidlinux/masterdir-$BOOTSTRAP:$TAG \
+ $DOCKER_BASE-$BOOTSTRAP:$TAG \
/bin/sh -c 'sleep inf'
next prev parent reply other threads:[~2019-09-28 4:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 16:32 [PR PATCH] " voidlinux-github
2019-09-27 17:07 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-27 17:07 ` voidlinux-github
2019-09-28 4:17 ` voidlinux-github [this message]
2019-09-28 4:17 ` voidlinux-github
2019-10-21 16:32 ` [PR PATCH] [Merged]: " voidlinux-github
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190928041728.n5XXqB12MydhkI0el15R8bQgwgG8OzvVe4f8vcF-Ok8@z \
--to=voidlinux-github@inbox.vuxu.org \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).