From fead79185b3e03fc94464a70cc40b9ac54d4b4af Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sun, 30 May 2021 23:22:27 +0200 Subject: [PATCH 1/3] CI: Run ESLint job with GitHub Actions --- .github/workflows/ci-eslint.yml | 21 +++++++++++++++++++++ .travis.yml | 1 - 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci-eslint.yml diff --git a/.github/workflows/ci-eslint.yml b/.github/workflows/ci-eslint.yml new file mode 100644 index 000000000..7a5c4337f --- /dev/null +++ b/.github/workflows/ci-eslint.yml @@ -0,0 +1,21 @@ +name: CI ESLint + +on: + push: + branches: + - '*' + pull_request: + branches: [ master ] + +jobs: + eslint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Install ESLint + run: npm install eslint@5.12.0 eslint-config-google@0.11.0 eslint-plugin-html@5.0.0 eslint-plugin-php-markup@0.2.5 + - name: Run ESLint + run: npx eslint --ext .php,.js . diff --git a/.travis.yml b/.travis.yml index c370e9318..5a845aff7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,6 @@ install: - update-binfmts --enable qemu-arm env: - - SMPFLAGS=-j4 OS=eslint DIST=eslint - SMPFLAGS=-j4 OS=ubuntu DIST=bionic DOCKER_REPO=iconzm/packpack compiler: From 764f10bf82bc9dd88bf31f4949342f211d7ab48b Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sun, 30 May 2021 23:47:54 +0200 Subject: [PATCH 2/3] CI: Run packpack for Buster on GitHub Actions --- .github/workflows/create-packages.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/create-packages.yml diff --git a/.github/workflows/create-packages.yml b/.github/workflows/create-packages.yml new file mode 100644 index 000000000..68025e72a --- /dev/null +++ b/.github/workflows/create-packages.yml @@ -0,0 +1,29 @@ +name: Create packages + +on: + push: + branches: + - '*' + pull_request: + branches: [ master ] + +jobs: + package: + strategy: + matrix: + os_dist: + - os: debian + dist: buster + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Run packpack + env: + SMPFLAGS: -j4 + OS: ${{ matrix.os_dist.os }} + DIST: ${{ matrix.os_dist.dist }} + DOCKER_REPO: iconzm/packpack + run: utils/packpack/startpackpack.sh From f3cb14cc17f32eaa7a4efa2df371acd4f711d03b Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Mon, 31 May 2021 00:15:00 +0200 Subject: [PATCH 3/3] CI: Remove Travis CI All our CI needs are handled by GitHub Actions --- .travis.yml | 57 ----------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5a845aff7..000000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -language: cpp -sudo: required -dist: bionic -git: - depth: 9999999 -notifications: - irc: chat.freenode.net#zoneminder-dev -branches: - except: - - modern -cache: ccache -addons: - ssh_known_hosts: zmrepo.zoneminder.com - apt: - sources: - - sourceline: ppa:iconnor/zoneminder-master - - key_url: http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4D0BF748776FFB04 - packages: - - gdebi - - yum-utils - - patch - - git - - curl - - sshfs - - sed - - binfmt-support - - qemu - - qemu-user-static - - dnsutils - - traceroute -install: - - update-binfmts --enable qemu-arm - -env: - - SMPFLAGS=-j4 OS=ubuntu DIST=bionic DOCKER_REPO=iconzm/packpack - -compiler: -- gcc -services: -- mysql -- docker - -script: -- utils/packpack/startpackpack.sh - -before_deploy: -- openssl aes-256-cbc -K $encrypted_62a62750aa73_key -iv $encrypted_62a62750aa73_iv -in ./utils/packpack/deploy_rsa.enc -out /tmp/deploy_rsa -d -- eval "$(ssh-agent -s)" -- chmod 600 /tmp/deploy_rsa -- ssh-add /tmp/deploy_rsa - -deploy: - provider: script - skip_cleanup: true - script: utils/packpack/rsync_xfer.sh - on: - branch: master