Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Travis with windows build, removed broken appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
janlanger committed Feb 17, 2020
1 parent 79c28bc commit 70be8db
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 85 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.gitattributes export-ignore
.gitignore export-ignore
/appveyor.yml export-ignore
/.travis.yml export-ignore
/.scrutinizer.yml export-ignore
/build export-ignore
Expand Down
166 changes: 147 additions & 19 deletions .travis.yml
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
64 changes: 0 additions & 64 deletions appveyor.yml

This file was deleted.

1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Client for EET - Elektronická evidence tržeb

[![Build Status](https://img.shields.io/travis/slevomat/eet-client/master.svg?style=flat-square)](https://travis-ci.org/slevomat/eet-client)
[![Build status](https://img.shields.io/appveyor/ci/slevomat/eet-client/master.svg?style=flat-square)](https://ci.appveyor.com/project/slevomat/eet-client/branch/master)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/slevomat/eet-client.svg?style=flat-square)](https://scrutinizer-ci.com/g/slevomat/eet-client/?branch=master)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/slevomat/eet-client.svg?style=flat-square)](https://scrutinizer-ci.com/g/slevomat/eet-client/?branch=master)
[![Latest Stable Version](https://img.shields.io/packagist/v/slevomat/eet-client.svg?style=flat-square)](https://packagist.org/packages/slevomat/eet-client)
Expand Down

0 comments on commit 70be8db

Please sign in to comment.