chore: github actions instead of travis-ci

This commit is contained in:
Jon Lee 2020-12-21 13:39:47 +08:00
parent 7d27ed3677
commit 41fe936722
2 changed files with 2 additions and 76 deletions

View File

@ -1,74 +0,0 @@
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache
services:
- mysql
matrix:
fast_finish: true
include:
# Laravel 5.5
- php: 7.1
env: LARAVEL=5.5.* PHPUNIT=~6.0
- php: 7.2
env: LARAVEL=5.5.* PHPUNIT=~6.0
- php: 7.3
env: LARAVEL=5.5.* PHPUNIT=~6.0
# Laravel 5.6
- php: 7.1
env: LARAVEL=5.6.* PHPUNIT=~7.0
- php: 7.2
env: LARAVEL=5.6.* PHPUNIT=~7.0
- php: 7.3
env: LARAVEL=5.6.* PHPUNIT=~7.0
# Laravel 5.7
- php: 7.1
env: LARAVEL=5.7.* PHPUNIT=~7.5
- php: 7.2
env: LARAVEL=5.7.* PHPUNIT=~7.5
- php: 7.3
env: LARAVEL=5.7.* PHPUNIT=~7.5
# Laravel 5.8
- php: 7.1
env: LARAVEL=5.8.* PHPUNIT=~7.5
- php: 7.2
env: LARAVEL=5.8.* PHPUNIT=~8.0
- php: 7.3
env: LARAVEL=5.8.* PHPUNIT=~8.0
# Laravel 6.x
- php: 7.2
env: LARAVEL=6.* PHPUNIT=~8.0
- php: 7.3
env: LARAVEL=6.* PHPUNIT=~8.0
# Laravel 7.x
- php: 7.3
env: LARAVEL=7.* PHPUNIT=~9.0
- php: 7.4
env: LARAVEL=7.* PHPUNIT=~9.0
before_install:
- travis_retry composer self-update
- travis_retry composer require laravel/framework:$LARAVEL --no-update --no-interaction
- travis_retry composer require laravel/laravel:$LARAVEL phpunit/phpunit:$PHPUNIT --no-update --no-interaction --dev
- mysql -e 'create database if not exists lauthz;'
install:
- travis_retry composer install --no-suggest --no-interaction
script:
- vendor/bin/phpunit --version
- mkdir -p build/logs
- vendor/bin/phpunit
after_script:
- travis_retry vendor/bin/php-coveralls -v

View File

@ -7,8 +7,8 @@
</p>
<p align="center">
<a href="https://travis-ci.org/php-casbin/laravel-authz">
<img src="https://travis-ci.org/php-casbin/laravel-authz.svg?branch=master" alt="Build Status">
<a href="https://github.com/php-casbin/laravel-authz/actions">
<img src="https://github.com/php-casbin/laravel-authz/workflows/build/badge.svg?branch=master" alt="Build Status">
</a>
<a href="https://coveralls.io/github/php-casbin/laravel-authz">
<img src="https://coveralls.io/repos/github/php-casbin/laravel-authz/badge.svg" alt="Coverage Status">