Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Virtualmin installer using Docker #35

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
55 changes: 52 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
dist: trusty

env:
- OS_IMAGE=centos:6 VMIN_BUNDLE=LAMP VMIN_MODE=
- OS_IMAGE=centos:6 VMIN_BUNDLE=LAMP VMIN_MODE=--minimal
- OS_IMAGE=centos:6 VMIN_BUNDLE=LEMP VMIN_MODE=
- OS_IMAGE=centos:6 VMIN_BUNDLE=LEMP VMIN_MODE=--minimal
- OS_IMAGE=centos:7 VMIN_BUNDLE=LAMP VMIN_MODE=
- OS_IMAGE=centos:7 VMIN_BUNDLE=LAMP VMIN_MODE=--minimal
- OS_IMAGE=centos:7 VMIN_BUNDLE=LEMP VMIN_MODE=
- OS_IMAGE=centos:7 VMIN_BUNDLE=LEMP VMIN_MODE=--minimal
- OS_IMAGE=ubuntu:16.04 VMIN_BUNDLE=LAMP VMIN_MODE=
- OS_IMAGE=ubuntu:16.04 VMIN_BUNDLE=LAMP VMIN_MODE=--minimal
- OS_IMAGE=ubuntu:16.04 VMIN_BUNDLE=LEMP VMIN_MODE=
- OS_IMAGE=ubuntu:16.04 VMIN_BUNDLE=LEMP VMIN_MODE=--minimal
- OS_IMAGE=ubuntu:18.04 VMIN_BUNDLE=LAMP VMIN_MODE=
- OS_IMAGE=ubuntu:18.04 VMIN_BUNDLE=LAMP VMIN_MODE=--minimal
- OS_IMAGE=ubuntu:18.04 VMIN_BUNDLE=LEMP VMIN_MODE=
- OS_IMAGE=ubuntu:18.04 VMIN_BUNDLE=LEMP VMIN_MODE=--minimal
- OS_IMAGE=debian:9 VMIN_BUNDLE=LAMP VMIN_MODE=
- OS_IMAGE=debian:9 VMIN_BUNDLE=LAMP VMIN_MODE=--minimal
- OS_IMAGE=debian:9 VMIN_BUNDLE=LEMP VMIN_MODE=
- OS_IMAGE=debian:9 VMIN_BUNDLE=LEMP VMIN_MODE=--minimal
- OS_IMAGE=debian:10 VMIN_BUNDLE=LAMP VMIN_MODE=
- OS_IMAGE=debian:10 VMIN_BUNDLE=LAMP VMIN_MODE=--minimal
- OS_IMAGE=debian:10 VMIN_BUNDLE=LEMP VMIN_MODE=
- OS_IMAGE=debian:10 VMIN_BUNDLE=LEMP VMIN_MODE=--minimal

stages:
- syntaxValidation
- test

services:
- docker

before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq perl shellcheck devscripts
script: prove
- docker pull $OS_IMAGE
- touch $(pwd)/install.log

script:
- docker run -h test.virtualmin.com -t --rm -v $(pwd):/src -v $(pwd)/install.log:/root/virtualmin-install.log -w /src $OS_IMAGE /bin/sh -c "./virtualmin-install.sh -f -b $VMIN_BUNDLE $VMIN_MODE"

after_script:
- cat $(pwd)/install.log

jobs:
include:
- stage: syntaxValidation
name: Validate bash file syntax
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq perl shellcheck devscripts
env: OS_IMAGE=ubuntu:18.04
script: prove
Empty file modified virtualmin-install.sh
100644 → 100755
Empty file.