-
Notifications
You must be signed in to change notification settings - Fork 42
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 #85 from ec-europa/develop
Release candidate 3.0.7
- Loading branch information
Showing
29 changed files
with
553 additions
and
379 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,63 +1,146 @@ | ||
# ============================================================================== | ||
# Workspace location. | ||
# ============================================================================== | ||
workspace: | ||
base: /test | ||
path: toolkit | ||
|
||
# ============================================================================== | ||
# Matrix section | ||
# ============================================================================== | ||
matrix: | ||
PHING_OPTS: | ||
- -logger phing.listener.AnsiColorLogger | ||
DOCKER_PROPS: | ||
- TOOLKIT_ENV_PROPS=/test/toolkit/includes/phing/props/docker.props | ||
PLATFORM_DEV: | ||
- 2.3 | ||
- 2.4 | ||
- 2.5 | ||
|
||
# ============================================================================== | ||
# Main services | ||
# ============================================================================== | ||
services: | ||
web: | ||
image: fpfis/php56-dev | ||
image: fpfis/php56-build | ||
environment: | ||
- DOCUMENT_ROOT=/test/toolkit/build | ||
mysql: | ||
image: fpfis/mysql56 | ||
selenium: | ||
image: selenium/standalone-chrome | ||
image: percona/percona-server:5.6 | ||
environment: | ||
- SE_OPTS=-log /tmp/selenium.log | ||
solr: | ||
image: fpfis/solr5 | ||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes | ||
|
||
# ============================================================================== | ||
# Pipelines | ||
# ============================================================================== | ||
pipeline: | ||
toolkit: | ||
|
||
# ============================================================================ | ||
# Setup section: | ||
# ============================================================================ | ||
setup: | ||
image: fpfis/php56-dev | ||
environment: | ||
- ${DOCKER_PROPS} | ||
group: setup | ||
commands: | ||
- PROJECT=$(pwd) composer toolkit-install | ||
- rm -rf ./.tmp/ ./build | ||
- cp ./includes/phing/props/drone.props build.develop.props | ||
- ./toolkit/phing project-properties-validate ${PHING_OPTS} | ||
volumes: | ||
- /cache:/cache | ||
- /cache/${DRONE_REPO_NAME}:/cache | ||
|
||
tunnel: | ||
image: fpfis/drone-frpc-plugin:latest | ||
group: setup | ||
detach: true | ||
secrets: [ frpc_token, frpc_server ] | ||
environment: | ||
- PLUGIN_ENDPOINT=web:8080 | ||
- PLUGIN_GEN_AUTH=yes | ||
- PLUGIN_DOMAIN=${DRONE_REPO_NAME}-${DRONE_BUILD_NUMBER}-${DRONE_JOB_NUMBER}.ci.fpfis.tech.ec.europa.eu | ||
- PLUGIN_URL_OUTPUT_FILE=/test/toolkit/.frpc | ||
|
||
# ============================================================================ | ||
# Build section: | ||
# ============================================================================ | ||
build: | ||
image: fpfis/php56-dev | ||
environment: | ||
- ${DOCKER_PROPS} | ||
group: build | ||
commands: | ||
- ./toolkit/phing build-platform build-subsite-dev -D'platform.package.version'='${PLATFORM_DEV}' ${PHING_OPTS} | ||
volumes: | ||
- /cache/${DRONE_REPO_NAME}:/cache | ||
|
||
solr: | ||
image: fpfis/solr5 | ||
group: build | ||
detach: true | ||
|
||
# ============================================================================ | ||
# Install section: | ||
# ============================================================================ | ||
install-clean: | ||
image: fpfis/php56-dev | ||
commands: | ||
- ./toolkit/phing build-platform ${PHING_OPTS} | ||
- ./toolkit/phing build-subsite-dev ${PHING_OPTS} | ||
- ./toolkit/phing install-clean -D'project.url.base'="$(cat /test/toolkit/.frpc)" ${PHING_OPTS} | ||
- ./toolkit/phing drush-sql-dump -D'database-file'='/test/toolkit/dump.sql' ${PHING_OPTS} | ||
volumes: | ||
- /cache:/cache | ||
- /cache/share:/tmp/toolkit | ||
- /cache/${DRONE_REPO_NAME}:/cache | ||
|
||
install: | ||
visreg-before: | ||
image: fpfis/php56-build | ||
secrets: [ BACKTRAC_TOKEN, BACKTRAC_DYNAMIC_PROJECT_ID ] | ||
commands: | ||
- ./toolkit/phing drush-settings-generate test-run-backtrac -D'project.url.base'="$(cat /test/toolkit/.frpc)" -D'backtrac.secure'='false' -D'backtrac.token'=$${BACKTRAC_TOKEN} -D'project.backtrac.id'=$${BACKTRAC_DYNAMIC_PROJECT_ID} -D'backtrac.env'='development' -D'backtrac.compare.mode'='snapshot' ${PHING_OPTS} || return 0 | ||
|
||
# ============================================================================ | ||
# Clone section: | ||
# ============================================================================ | ||
install-clone: | ||
image: fpfis/php56-dev | ||
environment: | ||
- ${DOCKER_PROPS} | ||
commands: | ||
- ./toolkit/phing install-clean ${PHING_OPTS} | ||
- ./toolkit/phing install-clone -D'project.db.file'='/test/toolkit/dump.sql' ${PHING_OPTS} | ||
volumes: | ||
- /cache:/cache | ||
- /cache/share:/tmp/toolkit | ||
- /cache/${DRONE_REPO_NAME}:/cache | ||
|
||
test: | ||
# Run backtrac self compare of build (may not be accurate): | ||
# Possible that it starts comparing against another build. | ||
# TODO: solve with better thing. (always green) | ||
visreg-after: | ||
image: fpfis/php56-build | ||
group: prebehat | ||
secrets: [ BACKTRAC_TOKEN, BACKTRAC_DYNAMIC_PROJECT_ID ] | ||
commands: | ||
- ./toolkit/phing drush-settings-generate test-run-backtrac -D'project.url.base'="$(cat /test/toolkit/.frpc)" -D'backtrac.secure'='false' -D'backtrac.token'=$${BACKTRAC_TOKEN} -D'project.backtrac.id'=$${BACKTRAC_DYNAMIC_PROJECT_ID} -D'backtrac.env'='development' -D'backtrac.compare.mode'='compare_itself' ${PHING_OPTS} || return 0 | ||
|
||
selenium: | ||
image: selenium/standalone-chrome | ||
group: prebehat | ||
detach: true | ||
|
||
# ============================================================================ | ||
# Test section: | ||
# ============================================================================ | ||
behat: | ||
image: fpfis/php56-dev | ||
environment: | ||
- ${DOCKER_PROPS} | ||
commands: | ||
- ./toolkit/phing test-run-behat ${PHING_OPTS} | ||
- ./toolkit/phing drush-settings-generate test-run-behat -D'project.url.base'='$${behat.base_url}' ${PHING_OPTS} | ||
volumes: | ||
- /cache:/cache | ||
- /cache/${DRONE_REPO_NAME}:/cache | ||
|
||
# ============================================================================ | ||
# Notify section: | ||
# ============================================================================ | ||
slack: | ||
image: plugins/slack | ||
channel: ci | ||
username: Subsite-QA | ||
icon_url: https://www.drupal.org/files/examples_meatwad256.png | ||
secrets: [ slack_webhook ] | ||
when: | ||
status: [ success, failure ] | ||
template: > | ||
{{#success build.status}} | ||
{{repo.name}}@{{build.branch}} <{{build.link}}|passed> all subsite tests. | ||
{{else}} | ||
{{repo.name}}@{{build.branch}} <{{build.link}}|failed> subsite tests. | ||
{{/success}} |
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 |
---|---|---|
|
@@ -16,3 +16,9 @@ build | |
.tmp | ||
toolkit | ||
vendor | ||
bin | ||
build.project.xml | ||
lib/ | ||
phpcs-ruleset.xml | ||
resources/ | ||
tests/ |
Oops, something went wrong.