Skip to content

Commit

Permalink
Fix Github Actions and Remove Travis (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Jan 15, 2021
1 parent 9739c9b commit c8e9d66
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 117 deletions.
3 changes: 0 additions & 3 deletions .coveralls.yml

This file was deleted.

49 changes: 8 additions & 41 deletions .github/workflows/test-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,61 +19,33 @@ jobs:
- php-version: '5.6'
lint: false
symfony-version: '^2.8'
elasticsearch-package-constraint: '^5.0'
env:
ELASTICSEARCH_HOST: '127.0.0.1:9205'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.0'
lint: false
symfony-version: '^3.4'
elasticsearch-package-constraint: '^5.0'
env:
ELASTICSEARCH_HOST: '127.0.0.1:9205'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.2'
lint: false
symfony-version: '^3.4'
elasticsearch-package-constraint: '^5.0'
env:
ELASTICSEARCH_HOST: '127.0.0.1:9205'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.3'
lint: false
symfony-version: '^4.4'
elasticsearch-package-constraint: '^5.0'
env:
ELASTICSEARCH_HOST: '127.0.0.1:9205'
elasticsearch-package-constraint: '^5.0'

- php-version: '7.4'
lint: true
symfony-version: '^5.0'
elasticsearch-package-constraint: '^5.0'
env:
ELASTICSEARCH_HOST: '127.0.0.1:9205'
elasticsearch-package-constraint: '^5.0'

services:
elasticsearch5:
image: elasticsearch:5.6.14
ports:
- 9205:9200
env:
discovery.type: 'single-node'
xpack.security.enabled: 'false'
options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=5

elasticsearch6:
image: elasticsearch:6.8.4
ports:
- 9206:9200
env:
discovery.type: 'single-node'
xpack.security.enabled: 'false'
options: --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=5

elasticsearch7:
image: elasticsearch:7.9.3
ports:
- 9202:9200
- 9200:9200
env:
discovery.type: 'single-node'
xpack.security.enabled: 'false'
Expand Down Expand Up @@ -111,12 +83,7 @@ jobs:
- name: Fix code style
if: ${{ matrix.lint }}
run: vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/,Tests/app/ ./
run: vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/,Tests/app/,Profiler/Handler/BackwardCompatibilityWriteTrait.php ./

- name: Run tests
run: vendor/bin/simple-phpunit --coverage-clover=coverage.clover

- name: Upload coverage results to Coveralls
run: vendor/bin/php-coveralls -v
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: vendor/bin/simple-phpunit
5 changes: 0 additions & 5 deletions .scrutinizer.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
"symfony/phpunit-bridge": "^5.1",
"symfony/dependency-injection": "^2.8|^3.4|^4|^5",
"symfony/validator": "^2.8|^3.4|^4|^5",
"symfony/options-resolver": "^2.8|^3.4|^4|^5",
"php-coveralls/php-coveralls": "^2.4.3"
"symfony/options-resolver": "^2.8|^3.4|^4|^5"
},
"autoload": {
"psr-4": { "ONGR\\ElasticsearchBundle\\": "" },
Expand Down

0 comments on commit c8e9d66

Please sign in to comment.