This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
language: bash | ||
|
||
services: | ||
- docker | ||
|
||
group: bluezone | ||
|
||
dist: xenial | ||
|
||
sudo: required | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable' | ||
key_url: 'https://download.docker.com/linux/ubuntu/gpg' | ||
packages: | ||
- docker-ce | ||
|
||
before_install: | ||
- echo "Killing auto-updates to avoid apt lock conflicts"; | ||
- sudo systemctl stop apt-daily.service; | ||
- sudo systemctl stop apt-daily.timer; | ||
- sudo systemctl stop apt-daily-upgrade.service; | ||
- sudo systemctl stop apt-daily-upgrade.timer; | ||
- bash .travis/waitForAptStop.sh | ||
- if [ "$TRAVIS_OS_NAME" = "linux-s390" ]; then | ||
sudo apt-get install -y unzip wget; | ||
fi | ||
- sudo apt-get install -y dnsutils | ||
- sudo chgrp travis /var/run/docker.sock | ||
- docker version | ||
|
||
jobs: | ||
include: | ||
- stage: build-push-images | ||
os: linux | ||
script: | ||
- uname -a | ||
- cat /etc/issue | ||
- ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
while sleep 10; do | ||
if [ $(pgrep apt | wc -l) -lt 1 ]; then | ||
echo "apt process not running, continuing on" | ||
break | ||
else | ||
echo "apt process still running" | ||
fi | ||
done |