-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from digipolisgent/feature/BW-143
BW-143: Add QA package and prepare for Drupal 9
- Loading branch information
Showing
13 changed files
with
81 additions
and
251 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,13 +1,4 @@ | ||
# Ignore the module lock file. | ||
/composer.lock | ||
|
||
# Ignore vendor directories. | ||
/vendor | ||
/node_modules | ||
|
||
# Ignore build artifacts. | ||
/build | ||
/build/ | ||
/vendor/ | ||
/.phpunit.result.cache | ||
|
||
# Ignore binary translation files. | ||
*.mo | ||
/composer.lock |
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,29 +1,65 @@ | ||
dist: bionic | ||
language: php | ||
sudo: false | ||
|
||
php: | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
env: | ||
global: | ||
- COMPOSER_MEMORY_LIMIT=-1 | ||
matrix: | ||
- DRUPAL=8.9 PHPUNIT=7.5 | ||
- DRUPAL=9.0 PHPUNIT=8.5 | ||
- DRUPAL=9.1 PHPUNIT=8.5 | ||
- DRUPAL=9.2 PHPUNIT=8.5 | ||
|
||
jobs: | ||
fast_finish: true | ||
|
||
before_install: | ||
# Tweak composer. | ||
- composer config github-oauth.github.com ${GITHUB_TOKEN} | ||
- composer global require "hirak/prestissimo:^0.3" | ||
# Update composer. | ||
- composer self-update --2 | ||
- composer --version | ||
|
||
# Configure the authentication mechanisms. | ||
- composer config -ga github-oauth.github.com $GITHUB_TOKEN | ||
- composer config -ga http-basic.digipolis.repo.repman.io token $REPMAN_TOKEN | ||
|
||
# Get the CodeClimate test reporter. | ||
# Require Drupal core. | ||
- composer require -n --no-update --sort-packages --dev drupal/core:~$DRUPAL.0 phpunit/phpunit:^$PHPUNIT | ||
|
||
# Get and run the Code Climate test reporter. | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
- ./cc-test-reporter before-build | ||
|
||
install: | ||
- COMPOSER_MEMORY_LIMIT=-1 composer install | ||
- composer install -n | ||
|
||
script: | ||
- vendor/bin/grumphp run | ||
- vendor/bin/grumphp run -n | ||
|
||
after_script: | ||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT | ||
# Run the Code Climate test reporter. | ||
- ./cc-test-reporter after-build --coverage-input-type clover --exit-code $TRAVIS_TEST_RESULT | ||
|
||
# Get and run the SonarQube scanner. | ||
- SONAR_PROJECT_NAME="Drupal $(composer config name | cut -d / -f 2)" | ||
- SONAR_PROJECT_KEY=web:$(echo "$TRAVIS_REPO_SLUG" | cut -d / -f 2) | ||
- curl -L https://repo1.maven.org/maven2/org/sonarsource/scanner/cli/sonar-scanner-cli/4.3.0.2102/sonar-scanner-cli-4.3.0.2102.jar > sonar-scanner.jar | ||
- "[ -d tests ] || mkdir tests" | ||
- > | ||
java -jar sonar-scanner.jar | ||
-Dsonar.host.url=https://sonarqube.stad.gent | ||
-Dsonar.login=$SONAR_LOGIN | ||
-Dsonar.projectKey=$SONAR_PROJECT_KEY | ||
-Dsonar.projectName="$SONAR_PROJECT_NAME" | ||
-Dsonar.tests=tests | ||
-Dsonar.exclusions=**/tests/**/* | ||
-Dsonar.php.coverage.reportPaths=build/logs/clover.xml |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
parameters: | ||
ignoreErrors: | ||
- '#^(?:(?!deprecated).)*$#' |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.