From 161f32804496e8fab01ff51bae3fdda1b0fa0028 Mon Sep 17 00:00:00 2001 From: Chris Coleman Date: Fri, 6 May 2022 17:56:42 -0400 Subject: [PATCH 1/3] Update .travis.yml --- .travis.yml | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2973be3..2c52fea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,40 @@ dist: trusty +sudo: required + +matrix: + include: + - os: linux + - env: OS_TYPE=fedora + - env: INSTALL_REQUIREMENTS="dnf repolist; dnf install -y perl shellcheck devscripts gcc meson sudo langpacks-zh_CN ed ncurses vi" + + - os: linux + - env: OS_TYPE=opensuse + - env: INSTALL_REQUIREMENTS="zypper refresh; zypper in -y perl shellcheck devscripts gcc python3 python3-pip ninja sudo glibc-locale glibc-devel ed ncurses-utils vim" + + - os: linux + - env: OS_TYPE=dauchida/freebsd + - env: INSTALL_REQUIREMENTS="pkg install -y perl shellcheck devscripts" + + - os: linux + - env: OS_TYPE=debian:11 + - env: INSTALL_REQUIREMENTS="sudo apt-get update -qq; sudo apt-get upgrade -y; sudo apt-get install -y -qq perl shellcheck devscripts" + + - os: linux + - env: OS_TYPE=ubuntu:22.04 + - env: INSTALL_REQUIREMENTS="sudo apt-get update -qq; sudo apt-get upgrade -y; sudo apt-get install -y -qq perl shellcheck devscripts" + + - os: osx + - env: OS_TYPE=osx + - env: INSTALL_REQUIREMENTS="brew update; brew install perl shellcheck devscripts" + before_install: -- sudo apt-get update -qq -- sudo apt-get install -qq perl shellcheck devscripts -script: prove + - [[ $TRAVIS_OS_NAME == "linux" ]] && docker pull ${OS_TYPE} + +install: + - [[ $TRAVIS_OS_NAME == "osx" ]] && docker run -d $OS /bin/sh -c "provision container if you do not have a prebuilt image and are instead using base images" + - [[ $TRAVIS_OS_NAME == "linux" ]] && docker run -d $OS /bin/sh -c "provision container if you do not have a prebuilt image and are instead using base images" + +script: + # Test for osx and run different build or prep commands: + - [[ $TRAVIS_OS_NAME == "osx" ]] && docker run -d $OS /bin/sh -c "prove" && docker run -d $OS /bin/sh -c "./virtualmin-install.sh" + - [[ $TRAVIS_OS_NAME == "linux" ]] && docker run -d $OS /bin/sh -c "prove"&& docker run -d $OS /bin/sh -c "./virtualmin-install.sh" From aec41d5b2a025a792522e5f18baae0615b057f07 Mon Sep 17 00:00:00 2001 From: Chris Coleman Date: Fri, 6 May 2022 18:30:30 -0400 Subject: [PATCH 2/3] Update .travis.yml --- .travis.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2c52fea..3993d66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,34 +5,36 @@ matrix: include: - os: linux - env: OS_TYPE=fedora - - env: INSTALL_REQUIREMENTS="dnf repolist; dnf install -y perl shellcheck devscripts gcc meson sudo langpacks-zh_CN ed ncurses vi" + - env: INSTALL_REQUIREMENTS="dnf repolist; dnf install -y perl shellcheck devscripts sudo wget" - os: linux - env: OS_TYPE=opensuse - - env: INSTALL_REQUIREMENTS="zypper refresh; zypper in -y perl shellcheck devscripts gcc python3 python3-pip ninja sudo glibc-locale glibc-devel ed ncurses-utils vim" + - env: INSTALL_REQUIREMENTS="zypper refresh; zypper in -y perl shellcheck devscripts sugo wget" - os: linux - env: OS_TYPE=dauchida/freebsd - - env: INSTALL_REQUIREMENTS="pkg install -y perl shellcheck devscripts" + - env: INSTALL_REQUIREMENTS="pkg install -y perl shellcheck devscripts sudo wget" - os: linux - env: OS_TYPE=debian:11 - - env: INSTALL_REQUIREMENTS="sudo apt-get update -qq; sudo apt-get upgrade -y; sudo apt-get install -y -qq perl shellcheck devscripts" + - env: INSTALL_REQUIREMENTS="sudo apt-get update -qq; sudo apt-get upgrade -y; sudo apt-get install -y -qq perl shellcheck devscripts sudo wget" - os: linux - env: OS_TYPE=ubuntu:22.04 - - env: INSTALL_REQUIREMENTS="sudo apt-get update -qq; sudo apt-get upgrade -y; sudo apt-get install -y -qq perl shellcheck devscripts" + - env: INSTALL_REQUIREMENTS="sudo apt-get update -qq; sudo apt-get upgrade -y; sudo apt-get install -y -qq perl shellcheck devscripts sudo wget" - os: osx - env: OS_TYPE=osx - - env: INSTALL_REQUIREMENTS="brew update; brew install perl shellcheck devscripts" + - env: INSTALL_REQUIREMENTS="brew update; brew install perl shellcheck devscripts sudo wget" before_install: - [[ $TRAVIS_OS_NAME == "linux" ]] && docker pull ${OS_TYPE} install: - - [[ $TRAVIS_OS_NAME == "osx" ]] && docker run -d $OS /bin/sh -c "provision container if you do not have a prebuilt image and are instead using base images" - - [[ $TRAVIS_OS_NAME == "linux" ]] && docker run -d $OS /bin/sh -c "provision container if you do not have a prebuilt image and are instead using base images" + - [[ $TRAVIS_OS_NAME == "osx" ]] && docker run -d $OS /bin/sh -c "$INSTALL_REQUIREMENTS" + - [[ $TRAVIS_OS_NAME == "linux" ]] && docker run -d $OS /bin/sh -c "$INSTALL_REQUIREMENTS" + - docker run -d $OS /bin/sh -c "sudo wget https://github.com/EspaceNetworks/virtualmin-install/raw/master/virtualmin-install.sh" + - docker run -d $OS /bin/sh -c "sudo chmod +x virtualmin-install.sh" script: # Test for osx and run different build or prep commands: From 6eb754846dab9b921dd405ffd706e9c31aa124eb Mon Sep 17 00:00:00 2001 From: Chris Coleman Date: Sat, 21 May 2022 10:41:44 -0400 Subject: [PATCH 3/3] Create basictestrun.yml --- .github/workflows/basictestrun.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/basictestrun.yml diff --git a/.github/workflows/basictestrun.yml b/.github/workflows/basictestrun.yml new file mode 100644 index 0000000..c6b1785 --- /dev/null +++ b/.github/workflows/basictestrun.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project.