Drop Travis

This commit is contained in:
Adrien Crivelli 2020-11-26 11:10:52 +09:00
parent 0ed5b800be
commit bd05c590e3
No known key found for this signature in database
GPG Key ID: 16D79B903B4B5874
6 changed files with 4 additions and 44 deletions

1
.gitattributes vendored
View File

@ -5,7 +5,6 @@
/.php_cs.dist export-ignore
/.sami.php export-ignore
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/CHANGELOG.PHPExcel.md export-ignore
/bin export-ignore
/composer.lock export-ignore

View File

@ -1,4 +1,4 @@
name: Build
name: main
on: [ push, pull_request ]
jobs:
test:

View File

@ -1,34 +0,0 @@
language: php
dist: bionic
php:
- 7.2
- 7.3
- 7.4
- nightly
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
# Deactivate xdebug
- if [[ $TRAVIS_PHP_VERSION != nightly ]]; then phpenv config-rm xdebug.ini; fi
- if [[ $TRAVIS_PHP_VERSION == nightly ]]; then rm composer.lock; fi
- composer install --ignore-platform-reqs
script:
- ./vendor/bin/phpunit --color=always --coverage-text
allow_failures:
- php: nightly
jobs:
include:
- stage: Code style
php: 7.4
script:
- ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run
- ./vendor/bin/phpcs

View File

@ -1,6 +1,6 @@
# PhpSpreadsheet
[![Build Status](https://travis-ci.org/PHPOffice/PhpSpreadsheet.svg?branch=master)](https://travis-ci.org/PHPOffice/PhpSpreadsheet)
[![Build Status](https://github.com/PHPOffice/PhpSpreadsheet/workflows/main/badge.svg)](https://github.com/PHPOffice/PhpSpreadsheet/actions)
[![Code Quality](https://scrutinizer-ci.com/g/PHPOffice/PhpSpreadsheet/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/PHPOffice/PhpSpreadsheet/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/PHPOffice/PhpSpreadsheet/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/PHPOffice/PhpSpreadsheet/?branch=master)
[![Total Downloads](https://img.shields.io/packagist/dt/PHPOffice/PhpSpreadsheet)](https://packagist.org/packages/phpoffice/phpspreadsheet)

View File

@ -43,7 +43,7 @@ class SampleTest extends TestCase
}
// Unfortunately some tests are too long be ran with code-coverage
// analysis on Travis, so we need to exclude them
// analysis on GitHub Actions, so we need to exclude them
global $argv;
if (in_array('--coverage-clover', $argv)) {
$tooLongToBeCovered = [

View File

@ -82,14 +82,9 @@ class XmlLoadTest extends TestCase
public function testLoadUnusableSample(): void
{
// Sample spreadsheet is not readable by Excel.
// But PhpSpreadsheet can load it except for coverage test.
//global $argv;
//if (in_array('--coverage-clover', $argv)) {
// self::markTestSkipped('Mysterious Travis coverage failure IOFactoryTest');
//}
// But PhpSpreadsheet can load it.
$filename = __DIR__
. '/../../../..'
//. '/samples/templates/Excel2003XMLTest.xml';
. '/samples/templates/excel2003.short.bad.xml';
$reader = new Xml();
$spreadsheet = $reader->load($filename);