-
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 #64 from UN-OCHA/develop
[OPS-8092] core security update
- Loading branch information
Showing
8 changed files
with
456 additions
and
209 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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
dist: bionic | ||
dist: focal | ||
language: php | ||
cache: | ||
- composer | ||
|
||
addons: | ||
chrome: stable | ||
|
||
php: | ||
- 8.0 | ||
|
||
# Make sure we have a recent version of docker-compose and chrome. | ||
addons: | ||
apt: | ||
packages: | ||
- docker-compose | ||
chrome: stable | ||
|
||
services: | ||
- mysql | ||
|
||
|
@@ -39,15 +43,15 @@ script: | |
- test ! -d ./html/themes/custom || find -L ./html/themes/custom -iregex '.*\.\(php\|module\|inc\|install\)$' -print0 | xargs -0 -n 1 -P 4 php -l | ||
|
||
# PHP CS | ||
- ./vendor/bin/phpcs --config-set installed_paths vendor/drupal/coder/coder_sniffer | ||
- test ! -d ./html/modules/custom || ./vendor/bin/phpcs -p --report=full ./html/modules/custom | ||
|
||
# Theme build. | ||
- composer run sass | ||
|
||
# Drupal install | ||
- mysql -e "CREATE USER [email protected] IDENTIFIED BY 'drupal';" | ||
- mysql -e "CREATE DATABASE drupal;" | ||
- mysql -e "GRANT ALL ON drupal.* to [email protected] IDENTIFIED BY 'drupal';" | ||
- mysql -e "GRANT ALL ON drupal.* to [email protected];" | ||
|
||
- cd ${TRAVIS_BUILD_DIR} | ||
- mkdir -p ./html/sites/default | ||
|
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
Oops, something went wrong.