Skip to content

Commit

Permalink
remove integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mimmi20 committed Oct 10, 2019
1 parent 10bcf44 commit 69f2269
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 187 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,31 +218,6 @@ jobs:
file: clover.xml
flags: phpunit

integration-tests:
name: Integration Tests

needs: tests

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@master

- name: Install PHP
uses: shivammathur/setup-php@1.3.9
with:
php-version: 7.1
extension-csv: mbstring, dom, xmlwriter #optional
ini-values-csv: "opcache.enable=1, opcache.enable_cli=1, zend.assertions=1, assert.exception=On" #optional
coverage: none #optional

- name: Update dependencies with composer
run: composer update --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction --no-suggest -vv

- name: Run integration tests with phpunit/phpunit
run: vendor/bin/phpunit -c tests/phpunit-integration.xml --no-coverage --colors --verbose

mutation-tests:
name: Mutation Tests

Expand Down
162 changes: 0 additions & 162 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,165 +189,3 @@ stages:
displayName: 'composer update'
- script: vendor/bin/phpstan analyse -c phpstan.neon --memory-limit=768M --no-progress
displayName: 'phpstan'

# - stage: tests
# displayName: 'UnitTests'
# dependsOn:
# - static_code_analysis
# - coding_standards
# jobs:
# - job: tests
# displayName: 'Run UnitTests'
# strategy:
# matrix:
# linux_1604_php71:
# imageName: "ubuntu-16.04" # ubuntu-latest
# php_version: "7.1"
# #mac_php71:
# # imageName: "macOS-10.14" # macOS-latest
# # php_version: "7.1"
# #windows_2016_php71:
# # imageName: "vs2017-win2016"
# # php_version: "7.1"
# #windows_2019_php71:
# # imageName: "windows-2019" # windows-latest
# # php_version: "7.1"
# linux_1604_php72:
# imageName: "ubuntu-16.04" # ubuntu-latest
# php_version: "7.2"
# #mac_php72:
# # imageName: "macOS-10.14" # macOS-latest
# # php_version: "7.2"
# #windows_2016_php72:
# # imageName: "vs2017-win2016"
# # php_version: "7.2"
# #windows_2019_php72:
# # imageName: "windows-2019" # windows-latest
# # php_version: "7.2"
# linux_1604_php73:
# imageName: "ubuntu-16.04" # ubuntu-latest
# php_version: "7.3"
# #mac_php73:
# # imageName: "macOS-10.14" # macOS-latest
# # php_version: "7.3"
# #windows_2016_php73:
# # imageName: "vs2017-win2016"
# # php_version: "7.3"
# #windows_2019_php73:
# # imageName: "windows-2019" # windows-latest
# # php_version: "7.3"
# maxParallel: 15
# variables:
# phpVersion: $(php_version)
# pool:
# vmImage: $(imageName)
# steps:
# - script: |
# sudo echo 'opcache.enable=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'opcache.enable_cli=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'zend.assertions=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'assert.exception=On' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo rm /etc/php/$(phpVersion)/cli/conf.d/20-xdebug.ini
# sudo update-alternatives --set php /usr/bin/php$(phpVersion)
# sudo update-alternatives --set phar /usr/bin/phar$(phpVersion)
# sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion)
# sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion)
# sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion)
# php -version
# displayName: 'Use PHP version $(phpVersion)'
# - script: composer self-update
# displayName: 'composer self-update'
# - script: composer update --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction --no-suggest -vv
# displayName: 'composer update'
# - script: vendor/bin/phpunit -c phpunit.xml --colors --no-coverage
# displayName: 'phpunit'
#
# - stage: code_coverage
# displayName: 'Code Coverage'
# dependsOn: tests
# jobs:
# - job: codecoverage
# displayName: 'Code Coverage'
# variables:
# phpVersion: 7.1
# pool:
# vmImage: 'ubuntu-16.04' # ubuntu-latest
# steps:
# - script: |
# sudo echo 'opcache.enable=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'opcache.enable_cli=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'zend.assertions=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'assert.exception=On' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo update-alternatives --set php /usr/bin/php$(phpVersion)
# sudo update-alternatives --set phar /usr/bin/phar$(phpVersion)
# sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion)
# sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion)
# sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion)
# php -version
# displayName: 'Use PHP version $(phpVersion)'
# - script: composer self-update
# displayName: 'composer self-update'
# - script: composer update --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction --no-suggest -vv
# displayName: 'composer update'
# - script: vendor/bin/phpunit -c phpunit.xml --colors --coverage-clover=clover.xml --coverage-text
# displayName: 'run phpunit'

- stage: integration_tests
displayName: 'Integration Tests'
dependsOn:
# - tests
- static_code_analysis
- coding_standards
jobs:
- job: integration_tests
displayName: 'Integration Tests'
variables:
phpVersion: 7.1
pool:
vmImage: 'ubuntu-16.04' # ubuntu-latest
steps:
- script: |
sudo rm /etc/php/$(phpVersion)/cli/conf.d/20-xdebug.ini
sudo update-alternatives --set php /usr/bin/php$(phpVersion)
sudo update-alternatives --set phar /usr/bin/phar$(phpVersion)
sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion)
sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion)
sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion)
php -version
displayName: 'Use PHP version $(phpVersion)'
- script: composer self-update
displayName: 'composer self-update'
- script: composer update --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction --no-suggest -vv
displayName: 'composer update'
- script: vendor/bin/phpunit -c tests/phpunit-integration.xml --no-coverage --colors --verbose
displayName: 'run phpunit'

# - stage: mutation_tests
# displayName: 'Mutation Tests'
# dependsOn: tests
# jobs:
# - job: mutation_tests
# displayName: 'Mutation Tests'
# variables:
# phpVersion: 7.1
# pool:
# vmImage: 'ubuntu-16.04' # ubuntu-latest
# steps:
# - script: |
# sudo echo 'opcache.enable=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'opcache.enable_cli=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'zend.assertions=1' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo echo 'assert.exception=On' >> /etc/php/$(phpVersion)/cli/php.ini
# sudo update-alternatives --set php /usr/bin/php$(phpVersion)
# sudo update-alternatives --set phar /usr/bin/phar$(phpVersion)
# sudo update-alternatives --set phpdbg /usr/bin/phpdbg$(phpVersion)
# sudo update-alternatives --set php-cgi /usr/bin/php-cgi$(phpVersion)
# sudo update-alternatives --set phar.phar /usr/bin/phar.phar$(phpVersion)
# php -version
# displayName: 'Use PHP version $(phpVersion)'
# - script: composer self-update
# displayName: 'composer self-update'
# - script: composer update --optimize-autoloader --prefer-dist --prefer-stable --no-progress --no-interaction --no-suggest -vv
# displayName: 'composer update'
# - script: vendor/bin/infection --min-covered-msi=95 --min-msi=95
# displayName: 'run infection'

0 comments on commit 69f2269

Please sign in to comment.