Drop Travis
This commit is contained in:
parent
0ed5b800be
commit
bd05c590e3
|
@ -5,7 +5,6 @@
|
||||||
/.php_cs.dist export-ignore
|
/.php_cs.dist export-ignore
|
||||||
/.sami.php export-ignore
|
/.sami.php export-ignore
|
||||||
/.scrutinizer.yml export-ignore
|
/.scrutinizer.yml export-ignore
|
||||||
/.travis.yml export-ignore
|
|
||||||
/CHANGELOG.PHPExcel.md export-ignore
|
/CHANGELOG.PHPExcel.md export-ignore
|
||||||
/bin export-ignore
|
/bin export-ignore
|
||||||
/composer.lock export-ignore
|
/composer.lock export-ignore
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build
|
name: main
|
||||||
on: [ push, pull_request ]
|
on: [ push, pull_request ]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
34
.travis.yml
34
.travis.yml
|
@ -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
|
|
|
@ -1,6 +1,6 @@
|
||||||
# PhpSpreadsheet
|
# 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 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)
|
[![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)
|
[![Total Downloads](https://img.shields.io/packagist/dt/PHPOffice/PhpSpreadsheet)](https://packagist.org/packages/phpoffice/phpspreadsheet)
|
||||||
|
|
|
@ -43,7 +43,7 @@ class SampleTest extends TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unfortunately some tests are too long be ran with code-coverage
|
// 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;
|
global $argv;
|
||||||
if (in_array('--coverage-clover', $argv)) {
|
if (in_array('--coverage-clover', $argv)) {
|
||||||
$tooLongToBeCovered = [
|
$tooLongToBeCovered = [
|
||||||
|
|
|
@ -82,14 +82,9 @@ class XmlLoadTest extends TestCase
|
||||||
public function testLoadUnusableSample(): void
|
public function testLoadUnusableSample(): void
|
||||||
{
|
{
|
||||||
// Sample spreadsheet is not readable by Excel.
|
// Sample spreadsheet is not readable by Excel.
|
||||||
// But PhpSpreadsheet can load it except for coverage test.
|
// But PhpSpreadsheet can load it.
|
||||||
//global $argv;
|
|
||||||
//if (in_array('--coverage-clover', $argv)) {
|
|
||||||
// self::markTestSkipped('Mysterious Travis coverage failure IOFactoryTest');
|
|
||||||
//}
|
|
||||||
$filename = __DIR__
|
$filename = __DIR__
|
||||||
. '/../../../..'
|
. '/../../../..'
|
||||||
//. '/samples/templates/Excel2003XMLTest.xml';
|
|
||||||
. '/samples/templates/excel2003.short.bad.xml';
|
. '/samples/templates/excel2003.short.bad.xml';
|
||||||
$reader = new Xml();
|
$reader = new Xml();
|
||||||
$spreadsheet = $reader->load($filename);
|
$spreadsheet = $reader->load($filename);
|
||||||
|
|
Loading…
Reference in New Issue