Dockerfile.test.yml: Run brew test-bot as linuxbrew

Running brew test-bot as root fails.

==> Running brew update...
Error: Running Homebrew as root is extremely dangerous and no longer supported.
This commit is contained in:
Shaun Jackman 2019-02-16 20:08:51 -08:00
parent d27320087a
commit a30b69c318
2 changed files with 2 additions and 1 deletions

View File

@ -37,4 +37,5 @@ ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH \
# Install portable-ruby and tap homebrew/core.
RUN HOMEBREW_NO_ANALYTICS=1 HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/core \
&& chown -R linuxbrew: /home/linuxbrew/.linuxbrew \
&& rm -rf ~/.cache

View File

@ -1,3 +1,3 @@
sut:
build: .
command: env USER=root brew test-bot
command: "sudo -i -u linuxbrew /home/linuxbrew/.linuxbrew/bin/brew test-bot"