Sfoglia il codice sorgente

migrate to github actions

tags/0.10.0
itismadness 3 anni fa
parent
commit
446ce58d94
2 ha cambiato i file con 33 aggiunte e 55 eliminazioni
  1. +33
    -0
      .github/workflows/ci.yml
  2. +0
    -55
      .travis.yml

+ 33
- 0
.github/workflows/ci.yml Vedi File

@@ -0,0 +1,33 @@
name: CI

on: [push, pull_request]

jobs:
testsuite:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.2', '7.4']

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: pcov


- name: Composer install
run: composer install

- run: pip3 install cchardet xld_logchecker eac_logchecker

- run: composer run lint

- run: compose run static-analysis

- run: composer run test

- run: bin/logchecker --version

+ 0
- 55
.travis.yml Vedi File

@@ -1,55 +0,0 @@
language: php
dist: xenial

cache:
directories:
- $HOME/.cache/pip
- $HOME/.composer/cache

php:
- 7.2
- 7.3
- 7.4
- nightly

matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- php: 7.2
env: PREFER_LOWEST=1
- php: 7.4
env: LINT=1

before_install:
- PYTHON3_VERSION=$(pyenv versions | grep -oP "3.[0-9]{1,}.[0-9]{1,}" | tail -1)
- pyenv global ${PYTHON3_VERSION}

install:
- if [[ $PREFER_LOWEST != 1 ]]; then travis_retry composer update --no-interaction --prefer-dist; fi
- if [[ $PREFER_LOWEST == 1 ]]; then travis_retry composer update --no-interaction --prefer-dist --prefer-lowest; fi
- if [[ $LINT != 1 ]]; then pip3 install cchardet xld_logchecker eac_logchecker; fi

script:
- if [[ $LINT == 1 ]]; then composer run lint; fi
- if [[ $LINT == 1 ]]; then composer run static-analysis; fi
- if [[ $LINT != 1 ]]; then composer run test; fi
- if [[ $LINT != 1 ]]; then bin/logchecker --version; fi

before_deploy:
- rm -rf vendor
- composer install --no-dev --optimize-autoloader
- php -d phar.readonly=0 bin/compile

deploy:
provider: releases
api_key:
secure: fsMbI9nYrxmSQRXNjNPqd7Oxdnnv5HyKPd2Va7AqQzbOsdTTPY5tz3/6RdeaG2cPjG19qxbWu/g21ysb/hWWeVyFpmIc8pl4TZcJTOrv28VNJiru87ynjjCKbP5N0AD6pnaVs3A6u8zjVZy2vlW1eOXU18xgTgA+yk/IoZX2AChItXdphgVI0rd941d/hkrnMj5shzy1Uv6wgbJSpD27UQ4d3zgGAgc6gteuXGRy0dizo4g0VrvQ21rpezLAgT0e1cefjIqAYwLFP2tm/Nsi5QLLYhSsQptkCUto+gFeGCLBgIMV5dz2IWIkFXQOdiVYjIGmT86GFN32bMLMDpO0ppTc8NPDjnni1cnM6/N/gMm/JvmLzGHMMEGYMgO+Yg1qgQi8MwjTk5twklsiJSUHIsa1WWo1+uj1rO5TQ8CzgajmNr5upJ9PI75rbOw+cn2DzR8UBPVDl+1YxJfz4XhmRgSdF98s+7kGS3Ehaby+gXnH76m2dU43CWukaz9hwGvDdG4nc0C7XDtLq15vbKcK5BywI0pCJRVwa81KBrt9mP4CU1hY2VidS1iQubegJ59bNN/B+xBW92i4AmBd1QhbBnExQ05xFpusIxjSx/7ty9GNTqm3P5JDRQUj+dgNGNgfoaq/ACkWfd68W/IHqPLnh6saReQd2mrTBKtoDs0Atik=
file: logchecker.phar
skip_cleanup: true
on:
tags: true
repo: OPSnet/Logchecker
php: '7.2'
condition: $PREFER_LOWEST != 1 && $Lint != 1

Caricamento…
Annulla
Salva