Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Adding travis
Browse files Browse the repository at this point in the history
  • Loading branch information
rlcundiff committed May 15, 2020
1 parent a851f16 commit 668939e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .travis.yml
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
10 changes: 10 additions & 0 deletions .travis/waitForAptStop.sh
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

0 comments on commit 668939e

Please sign in to comment.