-
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 #47 from StadGent/8.x-1.x-dev
Release 1.5.0
- Loading branch information
Showing
17 changed files
with
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,8 @@ | |
|
||
# Ignore build artifacts | ||
/build | ||
|
||
# QA Drupal. | ||
/*.local.* | ||
/*.qa-drupal.* | ||
/.phpunit.result.cache |
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,61 +1,60 @@ | ||
dist: bionic | ||
language: php | ||
|
||
php: | ||
- 7.3 | ||
- 7.4 | ||
|
||
env: | ||
global: | ||
- MODULE_NAME=opening_hours | ||
- COMPOSER_MEMORY_LIMIT=-1 | ||
matrix: | ||
- DRUPAL=8.9 | ||
- DRUPAL=9.0 | ||
- DRUPAL=9.1 | ||
- 8.1 | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
jobs: | ||
fast_finish: true | ||
|
||
before_install: | ||
# Update & configure composer. | ||
# Update composer to latest v2. | ||
- composer self-update --2 | ||
- composer --version | ||
- composer config github-oauth.github.com ${GITHUB_TOKEN} | ||
- composer config --global --auth http-basic.digipolis.repo.repman.io token ${REPMAN_TOKEN} | ||
|
||
# Remember directories for later use. | ||
- export DRUPAL_DIR="$TRAVIS_BUILD_DIR/../drupal" | ||
- export MODULE_DIR="$DRUPAL_DIR/web/modules/$MODULE_NAME" | ||
# Update SQLite. | ||
- sudo echo "deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse" >> /etc/apt/sources.list | ||
- sudo apt-get update | ||
- sudo apt-get -y install sqlite3/focal | ||
|
||
# Disable sending out e-mails. | ||
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
|
||
# Configure the repository authentication mechanisms. | ||
- if [ "${GITHUB_TOKEN}" != "" ]; then composer config github-oauth.github.com ${GITHUB_TOKEN}; fi | ||
- if [ "${REPMAN_TOKEN}" != "" ]; then composer config --global --auth http-basic.digipolis.repo.repman.io token ${REPMAN_TOKEN}; fi | ||
|
||
# Get the CodeClimate 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: | ||
# Install Module. | ||
- composer install --no-interaction --no-progress | ||
|
||
# Install Drupal. | ||
- composer create-project "drupal/recommended-project:$DRUPAL.x-dev" "$DRUPAL_DIR" --prefer-dist --no-interaction --no-progress | ||
|
||
# Install Drupal Check. | ||
- composer require mglaman/drupal-check:1.1.3 --working-dir="$DRUPAL_DIR" --no-interaction --no-progress | ||
|
||
before_script: | ||
# Link to module from within Drupal. | ||
- ln -s . "$MODULE_DIR" | ||
- touch .env.local | ||
- composer install -n --no-progress | ||
|
||
script: | ||
# Run GrumPHP checks. | ||
- vendor/bin/grumphp run | ||
|
||
# Test for deprecations. | ||
- cd "$DRUPAL_DIR" | ||
- phpenv config-rm xdebug.ini | ||
- ./vendor/bin/drupal-check -ad "$MODULE_DIR" | ||
- vendor/bin/grumphp run -n | ||
|
||
after_script: | ||
- cd "$TRAVIS_BUILD_DIR" | ||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT | ||
# Send the coverage report to the CodeClimate 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,59 @@ | ||
{ | ||
"name": "drupal/opening_hours", | ||
"type": "drupal-module", | ||
"description": "Integrates the Opening Hours platform functionality.", | ||
"license": "GPL-2.0-or-later", | ||
"type": "drupal-module", | ||
"keywords": [ | ||
"Drupal", | ||
"gent", | ||
"services", | ||
"opening hours" | ||
], | ||
"license": "GPL-2.0+", | ||
"homepage": "https://github.com/StadGent/drupal_module_opening-hours", | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"authors": [ | ||
{ | ||
"name": "Peter Decuyper", | ||
"email": "peter.decuyper@digipolis.gent" | ||
"email": "peter.decuyper@district09.gent" | ||
} | ||
], | ||
"homepage": "https://github.com/StadGent/drupal_module_opening-hours", | ||
"support": { | ||
"issues": "https://github.com/StadGent/drupal_module_opening-hours/issues", | ||
"source": "https://github.com/StadGent/drupal_module_opening-hours" | ||
}, | ||
"require": { | ||
"php": "^7.3", | ||
"stadgent/services-opening-hours": "^1.1" | ||
"php": "^8.1", | ||
"drupal/core": "^9.4", | ||
"stadgent/services-opening-hours": "^1.3" | ||
}, | ||
"require-dev": { | ||
"digipolisgent/qa-drupal": "^1" | ||
"digipolisgent/qa-drupal": "^1.5", | ||
"drush/drush": "^11" | ||
}, | ||
"scripts": { | ||
"coverage": "vendor/bin/phpunit --configuration=phpunit-coverage.xml", | ||
"grumphp": "vendor/bin/grumphp run --ansi", | ||
"phpcs": "vendor/bin/phpcs -p --colors", | ||
"phpstan": "vendor/bin/phpstan analyse --level=7 ./src", | ||
"phpunit": "vendor/bin/phpunit", | ||
"post-install-cmd": "vendor/bin/grumphp git:init" | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"config": { | ||
"allow-plugins": { | ||
"phpro/grumphp-shim": true, | ||
"ergebnis/composer-normalize": true, | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"extra": { | ||
"drush": { | ||
"services": { | ||
"drush.services.yml": "^9" | ||
"drush.services.yml": "^11" | ||
} | ||
}, | ||
"grumphp": { | ||
"config-default-path": "vendor/digipolisgent/qa-drupal/configs/grumphp-extension.yml" | ||
} | ||
}, | ||
"scripts": { | ||
"post-install-cmd": "vendor/bin/grumphp git:init", | ||
"coverage": "vendor/bin/phpunit --configuration=phpunit-coverage.xml", | ||
"grumphp": "vendor/bin/grumphp run --ansi", | ||
"phpcs": "vendor/bin/phpcs -p --colors", | ||
"phpstan": "vendor/bin/phpstan analyse --level=7 ./src", | ||
"phpunit": "vendor/bin/phpunit" | ||
} | ||
} |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.