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/.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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c370e9318..000000000 --- a/.travis.yml +++ /dev/null @@ -1,58 +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=eslint DIST=eslint - - 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