Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dev 1949 #610

Closed
wants to merge 297 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
297 commits
Select commit Hold shift + click to select a range
b1e57c3
Make setting includes work with the GUI config-installer which includ…
fago Aug 25, 2016
c0f7d90
Correct drunomics CI default mysql host.
fago Aug 26, 2016
81973af
#DEV-1137 Updated composer to support Drupal.org's composer repositor…
milkovsky Sep 21, 2016
184fed5
Disable twig debugging by default.
Oct 9, 2016
49d7b15
Support running drush from the project root.
Oct 9, 2016
6c032e9
Suggest dsk modules and bump drupal and console version requirements.
Oct 9, 2016
ee846fd
Add imroved settings from Drupal 8.2.0.
Oct 14, 2016
9c766c3
Update setup to use new vagrant setup without dransible.
fago Oct 28, 2016
8f8ab7b
Fix reverse proxy IPs configuration.
fago Dec 5, 2016
06cda21
Move replacement scripts to post-root-install event.
Dec 31, 2016
b4e7a8c
Merge remote-tracking branch 'gh/8.x' into 2.0.x
Dec 31, 2016
f1c5ad4
Make overridding the Vagrantfile work.
Jan 1, 2017
6a7cb37
Remove duplicate keys.
Jan 9, 2017
0fda28e
Update to latest devsetup.
Jan 9, 2017
670a6be
Make including settings.environment.php more robust, so it works with…
Jan 9, 2017
c6ad69e
Fix drush extension install location.
Jan 9, 2017
b9b57e1
Replace broken dpsetup with a custom setup command.
Jan 9, 2017
c481af0
Do not copy the default settings.php.
Jan 9, 2017
ed87d21
DEV-1127 Fetch devsetup from repo.
mbm80 Jan 11, 2017
2f68a49
DEV-1127 Fetch devsetup from repo, fix removed line.
mbm80 Jan 11, 2017
e3942f9
Add libraries to gitignore.
fago Jan 14, 2017
de96d7b
Fix major version in README.
fago Jan 19, 2017
8f171aa
README fix
mbm80 Jan 19, 2017
057a908
Improve drush config.
Jan 24, 2017
88ba373
Add phapp during project install.
Jan 24, 2017
6a3b2fa
Work over settings.php file names.
Jan 24, 2017
ca77344
Remove unnecessary dev dependency and fix composer-installers-extende…
fago Feb 1, 2017
8772cab
Add phpcs to dev tools.
fago Feb 17, 2017
f7c815a
Fix tmp directory issues on CI.
fago Mar 2, 2017
115087e
Add better local settings and service examples.
May 6, 2017
e162cee
Add behat config.
May 6, 2017
72055be
Initialize local setting files.
May 6, 2017
eea64f8
Forbid installing problemtic drupal console package.
May 6, 2017
1db1d1e
Correct conflicting version.
May 6, 2017
e75b275
Mark both versions as conflict.
May 6, 2017
32b8ee6
Correct install command.
May 7, 2017
0de8070
Correct base behat feature.
May 7, 2017
5efb00a
Correct project replacement in behat.yml.
May 7, 2017
62f3ba4
Add improved drush commands.
May 17, 2017
6dea6fe
Document new aliases.
May 17, 2017
db0f78c
Add phapp build-gitignore.
Jul 17, 2017
bac68fe
Merge remote-tracking branch 'gh/8.x' into 3.x
fago Oct 2, 2017
21cc080
Move to config/sync folder.
fago Oct 2, 2017
84b5c87
Improve base.settings.php a bit.
fago Oct 2, 2017
4507373
Remove duplicated config key in composer.json.
fago Oct 2, 2017
b3e1a89
Update to Drupal 8.4.*
fago Oct 2, 2017
a43c8d5
Update npm and bower setup.
fago Oct 2, 2017
3912137
Correct license.
Oct 2, 2017
0e216ce
Correct drush.wrapper for drush 9.
Oct 2, 2017
6e46493
Move alias files to yml.
Oct 2, 2017
0b54ab6
Process replacements in drush.yml also.
Oct 2, 2017
df5e488
Re-add devinci behat extension.
Oct 2, 2017
dad2946
Improve drupal-scaffold config and file initialization.
Oct 2, 2017
c332dbf
Fix local development overrides.
Oct 2, 2017
b6e6159
Add drush.yml stub.
Oct 2, 2017
4b5f637
Remove drupal console while it's not compatible.
Oct 2, 2017
0d1b47b
Update documentation.
Oct 2, 2017
3f07b79
Support project name detection for project/vcs clone targets.
Oct 2, 2017
42b83b9
Add default phpcs config.
fago Oct 12, 2017
925b043
Fix phpcs setup.
fago Oct 12, 2017
8d53be8
DEV-1251 Improved composer patch configuration.
Oct 12, 2017
6d2378f
Merge pull request #1 from drunomics/feature/DEV-1251
fago Oct 12, 2017
af50436
Add run-cron script.
Oct 20, 2017
8944c40
Add basic dotenv config.
Nov 27, 2017
37d010f
Add basic phapp yml.
Nov 27, 2017
0e3361a
Improve phar-installer to support version changes.
Nov 27, 2017
cf00941
Add composer clean script command.
Nov 27, 2017
4cd0e11
Fix phapp url and update version.
Nov 27, 2017
b0aed33
Add PHP 7.0 target platform to ensure code stays php 7.0 compatible.
Nov 27, 2017
fb981d2
Correct php version statement to be under config.
Nov 27, 2017
f529334
Update phapp.phar to 0.5.0.
Jan 19, 2018
afeab59
Update README to document phapp usage.
Jan 19, 2018
a52e0c7
Move drush config to drush.yml.
Jan 19, 2018
b80b8e0
Add headless chrome support when running behat.
Jan 19, 2018
beae1db
Add in small phapp.yml fixes.
Jan 19, 2018
b9a58d7
Adapt to most recent license modifier.
Jan 19, 2018
427d79b
Drush does not take the --gzip option into account.
Jan 19, 2018
0ec1c88
Fix behat config.
Jan 19, 2018
d45d795
Fix coding style in clean command script.
Jan 19, 2018
5034777
Correct configuration of the translations directory.
fago Jan 26, 2018
7ddd757
Make default travis config work.
fago Jan 26, 2018
cc289a9
Install with German locale by default.
fago Jan 26, 2018
db60b75
Move behat stuff to tests folder.
fago Apr 10, 2018
a7cd016
Rename env folder to dotenv.
fago Apr 10, 2018
98b7423
Update phapp config.
fago Apr 10, 2018
395273d
Check for locale updates.
fago Apr 10, 2018
e8df9ee
Bump dependency versions.
fago Apr 10, 2018
9ad1f02
Make php version compatible with Drupal.
fago Apr 10, 2018
30cc0b4
Make install profile overridable using variables.
fago Apr 18, 2018
bca3c20
Correct settings.php link in setup.
fago Apr 18, 2018
0847442
Update phapp.yml to add environment command.
fago Apr 19, 2018
b9a66bd
Fix typo in INSTALL_PROFILE environment variable.
fago Apr 24, 2018
bf12271
Add dotenv loaders, improve settings.php setup to leverage dotenv and…
fago Apr 24, 2018
1ff9d77
Improve after-project creation composer scripts.
fago Apr 24, 2018
99010e0
Improve gitignore.
fago Apr 24, 2018
2d89f92
Fix setup script.
fago Apr 24, 2018
71d76e5
Update gitignore to commit settings.php and commit it.
fago Apr 24, 2018
71c873e
Update autoloader to include script loader.
fago Apr 24, 2018
85a0f51
Install into default sub-dir by default.
fago Apr 24, 2018
b2e4fac
Remove outdated reference to fetch-devsetup script.
fago Apr 24, 2018
06a4db5
Fix phapp.yml to use replacements.
fago Apr 24, 2018
4f29ddb
Update README template.
fago Apr 24, 2018
1000d0d
Fix composer scripts to run devsetup init only once.
fago Apr 24, 2018
5a8eac1
Fix replacements in devsetup.
fago Apr 25, 2018
7831935
Fix drunomics devsetup to be only added when an optional environment …
fago Apr 26, 2018
59b7af5
Add travis for drupal project.
fago Apr 26, 2018
29520cc
Make sure replacements can be replaced in all environments.
fago Apr 26, 2018
a8f44e7
Implement basic travis test coverage.
fago Apr 26, 2018
6c7a666
Remove branch restriction for travis.
fago Apr 26, 2018
2fca2d4
Add build status.
fago Apr 26, 2018
fd83099
Avoid shallow clones on travis.
fago Apr 26, 2018
16297b2
Avoid shallow clones on travis.
fago Apr 26, 2018
736bee3
Avoid shallow clones on travis, by cloining again.
fago Apr 26, 2018
d3cd2b0
Remove template stuff after project creation.
fago Apr 26, 2018
1df06b9
Add .defaults.env for project wide defaults.
fago Apr 27, 2018
a09878b
Apply default language during installation.
fago Apr 27, 2018
6b744f9
Document default variables.
fago Apr 27, 2018
30e67ce
Restore project replacement pattern.
fago Apr 27, 2018
f9479a0
Improve behat test runner.
fago Apr 28, 2018
105240e
Add drunomics behat utils.
fago Apr 30, 2018
34e5eb8
Correct production mode check to work with bash.
fago Apr 30, 2018
cc54f2b
Use sudo for permission changes.
fago Apr 30, 2018
76b0e0c
Dotenv loader may not use exit to bail out.
fago May 7, 2018
d840d18
Add support for a localdev env based on devsetup-docker.
fago Jun 13, 2018
9aa68da
Corrections for localdev support.
fago Jun 13, 2018
539c2d9
Correct files directory permissions.
fago Jun 13, 2018
6ab2ccc
Correct docker variable value replacment.
fago Jun 13, 2018
d61341f
Add composer installer for phpcs sniffs.
fago Aug 7, 2018
9f829f5
Adjust phpcs config.
fago Aug 7, 2018
57e85e0
Use strict dependencies on core vendors.
fago Aug 16, 2018
24ff6d2
Merge pull request #2 from drunomics/feature/webflo-strict
fago Aug 16, 2018
5c65007
Update to latest phapp version.
fago Aug 16, 2018
f5ec910
Ensure tests use current version.
fago Aug 17, 2018
e686452
Support running tests with detached HEAD.
fago Aug 17, 2018
becc6a9
Merge pull request #3 from drunomics/feature/test-tests
fago Aug 17, 2018
4b39428
Bump composer/installers to 1.5.0 or higher.
fago Sep 24, 2018
fe55b37
Fix composer installers version dependency.
fago Sep 24, 2018
b38e5b4
Add drupal-core-dev dependency to follow core.
fago Sep 24, 2018
9103a16
Remove composer installers from dependencies, it's included in drupal…
fago Sep 24, 2018
150fbe1
Allow install the dev version of mink, as required by core.
fago Sep 24, 2018
eb4c157
Let drupal/core rule over the mink version.
fago Sep 24, 2018
038ef3e
Enforce secure versions.
fago Sep 24, 2018
a85780d
Remove the merge plugin, which is contained in drupal/core anyway.
fago Sep 24, 2018
e1d5275
Improve phar-installer to make relative symlinks and to install phars…
fago Sep 27, 2018
0d00e75
Add support for grouping environments using the group.name notation a…
fago Sep 27, 2018
7a4eadc
Fix loading settings per environment type.
fago Sep 27, 2018
3f3a45c
Add script for updating the init dump.
fago Sep 27, 2018
5eabdca
Improve files directory layout so files are stored all in a persisten…
fago Oct 18, 2018
1de9336
Add amazeeio lagoon environment detection.
fago Oct 19, 2018
cf58d74
Use sudo when setting ownership.
rthideaway Oct 31, 2018
f9a296a
Use sudo when setting file permissions.
rthideaway Oct 31, 2018
08936b8
Merge pull request #4 from drunomics/feature/WV-2556
fago Oct 31, 2018
a60c7e6
Fix update init dump script to work correctly.
fago Nov 7, 2018
3c620c5
Update gitignore.
fago Dec 7, 2018
64b6ab3
Update .env handling for improved docker-compose support.
fago Dec 7, 2018
63c166e
Improve behat runner to support latest chrome driver and http auth.
fago Dec 7, 2018
671a9a7
Remove composer memory limit.
fago Dec 7, 2018
2a12deb
Add missing gitconfig.
fago Dec 10, 2018
841acd2
Fix gitignore of generated behat config.
fago Jan 10, 2019
9f0d459
Fix dumps/sync directory to be pre-created.
fago Jan 10, 2019
ab8edac
Update behat utils.
fago Jan 21, 2019
bdc1363
Add drunomics module path to composer json merge.
maximilianmikus Jan 24, 2019
97e4c5d
Merge pull request #5 from drunomics/feature/drunomics-add-dir-composer
fago Jan 25, 2019
6db10c2
Update composer platform version.
maximilianmikus Jan 25, 2019
1d423b9
Revert "Add drunomics module path to composer json merge."
maximilianmikus Jan 25, 2019
b569fbf
Merge pull request #6 from drunomics/feature/update-composer-platform…
fago Jan 25, 2019
3355522
Fix behat config template to work with behat-drupal-utils 2.x.
fago Jan 25, 2019
adcbce5
Fix localdev to work with devsetup docker 2.x
fago Feb 6, 2019
2ee199c
Fix setup skript to skip file permission changes when ENV_UNIX_GROUP_…
fago Feb 6, 2019
36d4080
Fix replace vars script to work with special characters like &&.
fago Feb 7, 2019
8a9f9b1
Introduce APP_SECRET env vars and set a random mysql pass.
fago Feb 7, 2019
9d82a50
Make use of the app secret for the admin account.
fago Feb 7, 2019
97f0479
Fixed cs issues.
Feb 15, 2019
b80166e
Merge pull request #7 from drunomics/fix-cs-issues
arthurlorenz Feb 15, 2019
b368d13
Updated phpcs and coder.
pagachdrunomics Feb 18, 2019
2bd5831
Merge pull request #8 from drunomics/feature/phpcs-update
fago Feb 18, 2019
6d73467
Fix composer install path for drush 9 extensions.
fago Feb 18, 2019
b6d07db
Fix gitignore for drush 9 extensions.
fago Feb 18, 2019
eefa0cc
Add support for per-environment mode config and modules via dsk-confi…
fago Feb 18, 2019
43872fa
Merge remote-tracking branch 'origin/3.x' into 4.x
fago Feb 18, 2019
56eb94a
Update major version number in README.
fago Feb 18, 2019
cfdaf8a
Only run apply-env-mode when there is exported config.#
fago Feb 19, 2019
08736d6
Drunomics ruleset changes.
pagachdrunomics Mar 1, 2019
ee368f4
Merge pull request #9 from drunomics/feature/phpcs-update
fago Mar 1, 2019
3563a28
Add multisite support via the drunomics multisite request matcher.
fago Mar 27, 2019
45d9e5d
Move tests to 4.x.
fago Mar 27, 2019
efe5b2f
Remove version from command for optional features.
fago Mar 27, 2019
568705c
Update minimum versions in dependencies to help reducing possible ins…
fago Mar 27, 2019
3fd25c2
Further bump vendor versions.
fago Mar 27, 2019
84e771e
Really fix running tests with 4.x.
fago Mar 27, 2019
87f00a2
Add docker-devsetup by default and improve scripts for adding devsetup.
fago Mar 27, 2019
02f5383
Add missing scripts to vcs.
fago Mar 27, 2019
f589a8d
Fix running devsetup scripts.
fago Mar 27, 2019
861dbfa
Add env variables for the multisite-matcher and improve tests to laun…
fago Mar 27, 2019
2d8f66d
Test that the webserver is really working.
fago Mar 27, 2019
b4d402a
Make tests using devsetup-docker work.
fago Mar 29, 2019
deb93ae
Improve .env generation to allow setting env variables for docker-com…
fago Apr 5, 2019
ea316c8
Add new setup commands for the update docker-devsetup.
fago Apr 5, 2019
9f93702
Wait for mysql to be up to fix tests.
fago Apr 6, 2019
0c66c88
Update project docs for new devsetup.
fago May 13, 2019
68a7e28
Update loader to support setting site variant during CLI invocations.
fago May 16, 2019
70fd03e
Generate network aliases in docker-compose traefik network.
fago May 16, 2019
7205e3c
Correctly handle multiple-variants and sites in network alias generat…
fago Jun 5, 2019
91f41b7
WV-2746: Only use network-aliases for localdev.
fago Jun 6, 2019
2dd0606
Clarify usage of .env-defaults.
fago Jul 3, 2019
0261f74
Make loader ::getSiteVariables() match the logic of drunomics/multisi…
fago Jul 8, 2019
aaf08ad
Workaround missing -T option in non Linux OS (#14)
weixelbaumer Jul 18, 2019
d91aef4
Also ignore .vscode settings.
fago Aug 12, 2019
8f4e173
Add zaporylie/composer-drupal-optimizations.
fago Aug 12, 2019
e409484
Improve sql-sync to skip common table data by default.
fago Sep 19, 2019
3336f90
Do not throw away search api tracker information on dumps.
fago Oct 10, 2019
cfa18df
Update ::getSiteVariables() with latest version from MultisiteRequest…
fago Oct 14, 2019
ddbe92a
Add support for detecting platform.sh environments.
fago Oct 16, 2019
228e099
Fix dot env file parsing.
mbm80 Jan 30, 2020
8423201
DEV-1690: Add MacOSX support for setup scripts.
mostepaniukvm Apr 3, 2020
965ebfc
DEV-1690: Add MacOSX support for setup scripts.
mostepaniukvm Apr 3, 2020
e2be229
Remove wrong file.
fago Apr 3, 2020
9acf007
LDP-465: Composer improvements.
mostepaniukvm Jun 2, 2020
a2631b0
LDP-465: Default settings update.
mostepaniukvm Jun 2, 2020
17b3972
LDP-465: Added drupal/core-dev.
mostepaniukvm Jun 2, 2020
b2588b0
drupal/core-recommended should be used instead of drupal/core.
fago Jun 2, 2020
0e6209d
Merge pull request #17 from drunomics/feature/LDP-465
fago Jun 2, 2020
1ecdc4e
Update README to 5.x.
fago Jun 3, 2020
910ac90
DEV-1786: Update php version.
mostepaniukvm Sep 16, 2020
7b97465
DEV-1786: Update to drupal 9.
mostepaniukvm Sep 16, 2020
bacdd6a
DEV-1786: Updated drupal/drupal-extension.
mostepaniukvm Sep 17, 2020
edc19ad
DEV-1786: Use patch and branch version to ge D9 compatible.
mostepaniukvm Sep 17, 2020
7942c7b
DEV-1786: Updated to php7.3
mostepaniukvm Sep 17, 2020
3fca3fe
DEV-1786: Update composer.json to php7.3
mostepaniukvm Sep 17, 2020
0016bb9
DEV-1786: Úpdated services_env_parameter module.
mostepaniukvm Sep 17, 2020
35b7a36
DEV-1786: Úpdated multisite-request-matcher module.
mostepaniukvm Sep 17, 2020
d9549ca
DEV-1786: Corrected phapp install commands.
mostepaniukvm Sep 17, 2020
69e6ba3
DEV-1786: Added default.settings.php file.
mostepaniukvm Sep 18, 2020
b398a53
DEV-1786: Replace old array() syntax in settings files.
mostepaniukvm Sep 18, 2020
9555a04
DEV-1786: Use latest COMPOSE_AMAZEEIO_VERSION version.
mostepaniukvm Sep 18, 2020
89cf6b8
DEV-1786: Updated to php7.4.
mostepaniukvm Sep 18, 2020
af141a6
DEV-1786: Updated README.md
mostepaniukvm Sep 18, 2020
18caaa3
DEV-1786: Use 3.x branch of devsetup-docker
mostepaniukvm Sep 18, 2020
1a0a54c
DEV-1786: Documented core compatibility.
mostepaniukvm Oct 19, 2020
8c9d5ca
DEV-1786: Indentation fix
mostepaniukvm Oct 19, 2020
353f955
Fix drush site installation issues with latest drush due to unset $re…
fago Dec 6, 2020
9915a1f
DEV-1819: Introduce composer 2 compatibility. (#27)
mostepaniukvm Dec 23, 2020
e574b43
DEV-1786: Added default.settings.php from scaffold.
mostepaniukvm Dec 23, 2020
4a7efaf
DEV-1854: Switch security checker. (#33)
petarbasic Feb 18, 2021
be5e0d4
Merge pull request #32 from drunomics/feature-DEV-1786-6x
fago Feb 22, 2021
402f811
LDP-508: Always set base url for sitemap & add yml files to proccess …
Mar 29, 2021
1458e7a
LDP-752: Update drupal-scaffolding and behat test setup.
petarbasic Apr 27, 2021
8b0b2ce
LDP-618: Add phpunit.xml.dist to ease running phpunit tests. (#40)
mostepaniukvm May 20, 2021
c8831c3
LDP-1043: Change defaults to ignore test modules and themes & disable…
petarbasic Oct 21, 2021
9958dd7
DEV-1949: Initial setup of github workflow.
Mar 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .build-gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
; Alternative .gitignore file which is used when commit build artifcats.
.vagrant
dumps
npm-debug.log
node_modules
bower_components
web/sites/default/settings.php
web/sites/default/files
web/sites/default/private
web/files
web/files-private
17 changes: 17 additions & 0 deletions .defaults.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Some project-wide default variables.
# The defaults are loaded via the dotenv loader and not written to the ".env" file. We do not write them to ".env" as
# the variables may be overriden by the dotenv setup and ".env" variables must be final for docker-compose.
INSTALL_PROFILE=minimal
DEFAULT_LANGUAGE=en
PERSISTENT_FILES_DIR=files
URL_SCHEME=https
APP_SECRET={{ secret }}
APP_SECRET_LONG={{ secret_long }}
BEHAT_WARMUP_REQUIRED_CONTENT=window.__NUXT__

# Configure URLs via drunomics/multisite-request-matchers, see https://github.com/drunomics/multisite-request-matcher/
APP_MULTISITE_DOMAIN_PREFIX_SEPARATOR="_"
APP_SITE_VARIANT_SEPARATOR="--"
APP_SITE_VARIANTS=""
APP_DEFAULT_SITE=example
APP_SITES="example"
7 changes: 7 additions & 0 deletions .env-defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Defaults written to .env during phapp setup - should only contain defaults for docker-compose!

# We cannot use .defaults.env since those variables might have overrides that are applied by the dotenv loader setup,
# which docker-compose would not pick up. The defaults here should not be overridden in dotenv.
# Note: This variables are *not* picked up by amazeeio's lagoon hosting, only by docker-compose!

PHAPP_ENV_MYSQL_DEFAULT_PASSWORD={{ secret }}
50 changes: 50 additions & 0 deletions .github/workflows/test-drupal-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Test drupal setup
on:
repository_dispatch:
workflow_dispatch:
push:
branches:
- '6.**'
pull_request:
types: [opened, reopened]
jobs:
test-drupal-setup:
name: Build and install drupal project
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Setup PHP
run: |
sudo update-alternatives --set php /usr/bin/php7.4
- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: "echo \"::set-output name=directory::$(composer config cache-dir)\""
- name: "Cache dependencies installed with composer"
uses: actions/cache@v2.1.5
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: ${{ runner.os }}-composer-v1-${{ hashFiles('./composer.json') }}
restore-keys: |
${{ runner.os }}-composer-v1
- name: Install docker-compose.
run: |
sudo rm /usr/local/bin/docker-compose
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin
- name: Install composer dependencies.
run: |
composer config platform-check false
composer create-project
composer install
- name: Setup the environment
run: |
vendor/bin/phapp setup localdev
- name: Setup docker containers
run: |
export COMPOSE_DEFAULT_USER=$(id -u $USER)
docker-compose up -d
echo "Waiting for mysql to come up..." && docker-compose exec cli /bin/bash -c "while ! echo exit | nc mariadb 3306; do sleep 1; done" >/dev/null
docker-compose exec cli phapp install --no-build
curl -v http://example.project.localdev.space | grep "Drupal 9"
40 changes: 31 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,43 @@
# Ignore directories generated by Composer
/drush/contrib/
/vendor/
/drush/Commands/contrib
/vendor
/web/core/
/web/modules/contrib/
/web/modules/drunomics
/web/themes/contrib/
/web/profiles/contrib/
/web/libraries/

# Ignore sensitive information
/web/sites/*/settings.php
/web/sites/*/settings.local.php
# Ignore Drupal per-site environment setup.
/files
/web/files
/web/sites/*/files
/web/sites/*/files-private

# Ignore Drupal's file directory
/web/sites/*/files/
# Ignore local overrides and modules.
/web/sites/local.*
/web/modules/local
/web/themes/local
/web/profiles/local

# Ignore SimpleTest multi-site environment.
/web/sites/simpletest

# Ignore files generated by PhpStorm
/.idea/
# Ignore files generated by editors and IDEs.
.idea
.vscode

# Ignore setup files.
/docker-compose.overrides.aliases.yml
/.*.env
/.env
/.env.local
!.defaults.env
/web/sites/default
.vagrant
node_modules

# Ignore .DS_Store files (OSX)
.DS_Store
/.editorconfig
/.gitattributes
73 changes: 45 additions & 28 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,57 @@
language: php
dist: trusty
sudo: false
sudo: required

php:
- 5.6
- 7.0
- 7.1
- 7.4
git:
depth: false

env:
global:
- SIMPLETEST_DB=sqlite://tmp/site.sqlite
- SIMPLETEST_BASE_URL="http://127.0.0.1:8080"
matrix:
- RELEASE=stable COMPOSER_CHANNEL=stable
- RELEASE=dev COMPOSER_CHANNEL=stable
- RELEASE=stable COMPOSER_CHANNEL=snapshot
- DOCKER_COMPOSE_VERSION=1.22.0
COMPOSER_MEMORY_LIMIT=-1
addons:
apt:
packages:
- docker-ce

# Cache Composer, NPM & Drush directories.
cache:
directories:
- $HOME/.cache/composer
- $HOME/.npm
- $HOME/.drush/cache

# Setup the environment.
before_install:
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- composer --verbose self-update --$COMPOSER_CHANNEL
- composer --version
# Be sure no mails are going out by disabling sendmail.
- echo sendmail_path=`which true` >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

# Upgrade docker compose.
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin

install:
- composer --verbose install
# Update the git branch by composer and create a project.
- |
source scripts/util/get-branch.sh
export GIT_BRANCH=$GIT_BRANCH
export GIT_COMMIT=$(git rev-parse HEAD)
./scripts/util/replace-vars.sh < tests/drupal-project/package.envsubst.json > tests/drupal-project/package.json
git fetch origin $GIT_BRANCH:$GIT_BRANCH
composer create-project drunomics/drupal-project:"dev-$GIT_BRANCH#$GIT_COMMIT" --no-install --repository=tests/drupal-project/package.json project
cd project && composer install && cd ../

script:
- if [[ $RELEASE = dev ]]; then composer --verbose remove --no-update drupal/console; fi;
- if [[ $RELEASE = dev ]]; then composer --verbose require --no-update drupal/core:8.4.x-dev drush/drush:9.0.x-dev; fi;
- if [[ $RELEASE = dev ]]; then composer --verbose update; fi;
- cd $TRAVIS_BUILD_DIR/web
- ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
- ./../vendor/bin/drush runserver $SIMPLETEST_BASE_URL &
- until curl -s $SIMPLETEST_BASE_URL; do true; done > /dev/null
# Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
# Ignore PageCache group temporarily, @see https://www.drupal.org/node/2770673
- ./../vendor/bin/phpunit -c core --testsuite unit --exclude-group Composer,DependencyInjection,PageCache
- ./../vendor/bin/drush
- if [[ $RELEASE = stable ]]; then ./../vendor/bin/drupal; fi;
- cd project && vendor/bin/phapp setup localdev
# Fix permissions in docker container by setting the right user.
- export COMPOSE_DEFAULT_USER=$(id -u $USER)
- docker-compose up -d
- echo "Waiting for mysql to come up..." && docker-compose exec cli /bin/bash -c "while ! echo exit | nc mariadb 3306; do sleep 1; done" >/dev/null
- docker-compose exec cli phapp install --no-build
- curl -v http://example.project.localdev.space | grep "Drupal 9"

after_success:
- echo "SUCCESS!"
Loading