This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis with windows build, removed broken appveyor
- Loading branch information
Showing
4 changed files
with
147 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,154 @@ | ||
os: linux | ||
dist: xenial | ||
language: php | ||
|
||
php: | ||
- 7.2 | ||
- 7.3 | ||
- 7.4snapshot | ||
git: | ||
depth: 1 | ||
|
||
env: | ||
- # default environment without variables | ||
- COMPOSER_DEPENDENCIES_OPTIONS="--prefer-lowest --prefer-stable" | ||
before_script: | ||
- if [ "${DEPENDENCIES}" = "lowest" ]; then travis_retry composer update --prefer-lowest --prefer-dist --no-interaction --no-progress; fi; | ||
- if [ "${DEPENDENCIES}" = "highest" ]; then travis_retry composer update --no-interaction --no-progress; fi; | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- php: nightly | ||
jobs: | ||
include: | ||
- stage: Lint | ||
php: 7.2 | ||
env: DEPENDENCIES=highest | ||
script: vendor/bin/phing check-phplint | ||
|
||
before_script: | ||
- composer self-update | ||
- stage: Lint | ||
php: 7.3 | ||
env: DEPENDENCIES=highest | ||
script: vendor/bin/phing check-phplint | ||
|
||
- stage: Lint | ||
php: 7.4 | ||
env: DEPENDENCIES=highest | ||
script: vendor/bin/phing check-phplint | ||
|
||
- stage: Tests | ||
php: 7.2 | ||
env: DEPENDENCIES=lowest | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
php: 7.2 | ||
env: DEPENDENCIES=highest | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
os: windows | ||
dist: 1803-containers | ||
language: sh # No PHP currently | ||
env: PHP_VERSION=7.2.23 DEPENDENCIES=lowest | ||
install: | ||
- choco install php --version=${PHP_VERSION} --package-parameters="/InstallDir:c:\tools\php" | ||
- choco install composer --ia "/DEV=C:\tools\php" | ||
- echo "extension=soap" >> /c/tools/php/php.ini | ||
- export PATH=/c/tools/php:$PATH | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
os: windows | ||
dist: 1803-containers | ||
language: sh # No PHP currently | ||
env: PHP_VERSION=7.2.23 DEPENDENCIES=highest | ||
install: | ||
- choco install php --version=${PHP_VERSION} --package-parameters="/InstallDir:c:\tools\php" | ||
- choco install composer --ia "/DEV=C:\tools\php" | ||
- echo "extension=soap" >> /c/tools/php/php.ini | ||
- export PATH=/c/tools/php:$PATH | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
php: 7.3 | ||
env: DEPENDENCIES=lowest | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
php: 7.3 | ||
env: DEPENDENCIES=highest | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
os: windows | ||
dist: 1803-containers | ||
language: sh # No PHP currently | ||
env: PHP_VERSION=7.3.10 DEPENDENCIES=lowest | ||
install: | ||
- choco install php --version=${PHP_VERSION} --package-parameters="/InstallDir:c:\tools\php" | ||
- choco install composer --ia "/DEV=C:\tools\php" | ||
- echo "extension=soap" >> /c/tools/php/php.ini | ||
- export PATH=/c/tools/php:$PATH | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
os: windows | ||
dist: 1803-containers | ||
language: sh # No PHP currently | ||
env: PHP_VERSION=7.3.10 DEPENDENCIES=highest | ||
install: | ||
- choco install php --version=${PHP_VERSION} --package-parameters="/InstallDir:c:\tools\php" | ||
- choco install composer --ia "/DEV=C:\tools\php" | ||
- echo "extension=soap" >> /c/tools/php/php.ini | ||
- export PATH=/c/tools/php:$PATH | ||
script: vendor/bin/phing check-tests | ||
- stage: Tests | ||
os: windows | ||
dist: 1803-containers | ||
language: sh # No PHP currently | ||
env: PHP_VERSION=7.4.2 DEPENDENCIES=lowest | ||
install: | ||
- choco install php --version=${PHP_VERSION} --package-parameters="/InstallDir:c:\tools\php" | ||
- choco install composer --ia "/DEV=C:\tools\php" | ||
- echo "extension=soap" >> /c/tools/php/php.ini | ||
- export PATH=/c/tools/php:$PATH | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
os: windows | ||
dist: 1803-containers | ||
language: sh # No PHP currently | ||
env: PHP_VERSION=7.4.2 DEPENDENCIES=highest | ||
install: | ||
- choco install php --version=${PHP_VERSION} --package-parameters="/InstallDir:c:\tools\php" | ||
- choco install composer --ia "/DEV=C:\tools\php" | ||
- echo "extension=soap" >> /c/tools/php/php.ini | ||
- export PATH=/c/tools/php:$PATH | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
php: 7.4 | ||
env: DEPENDENCIES=lowest | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Tests | ||
php: 7.4 | ||
env: DEPENDENCIES=highest | ||
script: vendor/bin/phing check-tests | ||
|
||
- stage: Coding standard | ||
php: 7.4 | ||
env: DEPENDENCIES=highest | ||
script: vendor/bin/phing check-phpcs | ||
|
||
- stage: Static analysis | ||
php: 7.4 | ||
env: DEPENDENCIES=highest | ||
script: vendor/bin/phing check-phpstan | ||
|
||
- stage: Code coverage | ||
php: 7.4 | ||
env: DEPENDENCIES=highest | ||
install: | ||
- wget https://scrutinizer-ci.com/ocular.phar; | ||
script: | ||
- vendor/bin/phing check-tests | ||
- php ocular.phar code-coverage:upload --format=php-clover build/log/clover.xml | ||
|
||
script: | ||
- composer update --no-interaction --prefer-source $COMPOSER_DEPENDENCIES_OPTIONS | ||
- vendor/bin/phing | ||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
after_script: | ||
- if [[ $TRAVIS_PHP_VERSION = '7.2' && $COMPOSER_DEPENDENCIES_OPTIONS = '' ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi | ||
- if [[ $TRAVIS_PHP_VERSION = '7.2' && $COMPOSER_DEPENDENCIES_OPTIONS = '' ]]; then php ocular.phar code-coverage:upload --format=php-clover build/log/clover.xml; fi | ||
notifications: | ||
email: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters