From f6596fe9bfb52b9b788084880b7b88dd7758c4ed Mon Sep 17 00:00:00 2001 From: "F. E Noel Nfebe" Date: Tue, 9 Feb 2021 21:13:16 +0100 Subject: [PATCH] removed travis-ci and added github actions build status to readme (#319) Signed-off-by: fenn-cs --- .github/workflows/ci.yml | 2 +- .travis.yml | 91 ---------------------------------------- README.md | 3 +- 3 files changed, 3 insertions(+), 93 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 089f455..86161ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ on: [push, pull_request] jobs: main: name: phpList on PHP ${{ matrix.php-versions }} [Build, Test] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 env: DB_DATABASE: phplist DB_USERNAME: root diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d89ad70..0000000 --- a/.travis.yml +++ /dev/null @@ -1,91 +0,0 @@ -language: php - -php: -- 7.0 -- 7.1 -- 7.2 - -services: -- mysql - -env: - global: - - PHPLIST_DATABASE_NAME=phplist PHPLIST_DATABASE_USER=travis PHPLIST_DATABASE_PASSWORD='' - matrix: - - DEPENDENCIES=latest - - DEPENDENCIES=oldest - -notifications: - slack: - rooms: - - SLACKNOTIFICATION - on_success: change - on_failure: always - -sudo: false - -cache: - directories: - - "$HOME/.composer/cache" - -before_install: -- phpenv config-rm xdebug.ini -- > - echo; - echo "Creating the database and importing the database schema"; - mysql -e "CREATE DATABASE ${PHPLIST_DATABASE_NAME};"; - mysql -u root -e "GRANT ALL ON ${PHPLIST_DATABASE_NAME}.* TO '${PHPLIST_DATABASE_USER}'@'%';"; - mysql ${PHPLIST_DATABASE_NAME} < resources/Database/Schema.sql; - -install: -- > - echo; - if [ "$DEPENDENCIES" = "latest" ]; then - echo "Installing the latest dependencies"; - composer update --with-dependencies --prefer-stable --prefer-dist - else - echo "Installing the lowest dependencies"; - composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest - fi; - composer show; - -script: -- > - echo; - echo "Validating the composer.json"; - composer validate --no-check-all --no-check-lock --strict; - -- > - echo; - echo "Linting all PHP files"; - find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l bin/*; - -- > - echo; - echo "Running the unit tests"; - vendor/bin/phpunit tests/Unit/; - -- > - echo; - echo "Running the integration tests"; - vendor/bin/phpunit tests/Integration/; - -- > - echo; - echo "Running the system tests"; - vendor/bin/phpunit tests/System/; - -- > - echo; - echo "Running the static analysis"; - vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ public/; - -- > - echo; - echo "Running PHPMD"; - vendor/bin/phpmd src/ text config/PHPMD/rules.xml; - -- > - echo; - echo "Running PHP_CodeSniffer"; - vendor/bin/phpcs --standard=config/PhpCodeSniffer/ bin/ src/ tests/ public/; diff --git a/README.md b/README.md index 7d18429..f7cc900 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # phpList core module -[![Build Status](https://travis-ci.com/phpList/core.svg?branch=master)](https://travis-ci.com/phpList/core) + +[![Build Status](https://github.com/phpList/core/workflows/phpList%20Build/badge.svg)](https://github.com/phpList/web-frontend/actions) [![Latest Stable Version](https://poser.pugx.org/phplist/core/v/stable.svg)](https://packagist.org/packages/phpList/core) [![Total Downloads](https://poser.pugx.org/phplist/core/downloads.svg)](https://packagist.org/packages/phpList/core) [![Latest Unstable Version](https://poser.pugx.org/phplist/core/v/unstable.svg)](https://packagist.org/packages/phpList/core)