mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-06-29 16:09:24 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
8965d3bdf0 |
|
@ -1,7 +1,10 @@
|
|||
{
|
||||
"github-slug": "silverstripe/silverstripe-installer",
|
||||
"changelog-holder": "silverstripe/framework",
|
||||
"changelog-path": "docs/en/04_Changelogs/{stability}/{version}.md",
|
||||
"changelog-template": ".cow/changelog.md.twig",
|
||||
"child-stability-inherit": true,
|
||||
"dependency-constraint": "loose",
|
||||
"dependency-constraint": "exact",
|
||||
"vendors": [
|
||||
"silverstripe"
|
||||
],
|
||||
|
|
|
@ -18,7 +18,6 @@ A full list of module versions included in CMS Recipe {{ version }} is provided
|
|||
| silverstripe/errorpage | x.x.x |
|
||||
| silverstripe/framework | x.x.x |
|
||||
| silverstripe/graphql | x.x.x |
|
||||
| silverstripe/login-forms | x.x.x |
|
||||
| silverstripe/mimevalidator | x.x.x |
|
||||
| silverstripe/reports | x.x.x |
|
||||
| silverstripe/siteconfig | x.x.x |
|
||||
|
|
|
@ -8,5 +8,5 @@ SS_DATABASE_USERNAME="<user>"
|
|||
SS_DATABASE_PASSWORD="<password>"
|
||||
SS_DATABASE_NAME="<database>"
|
||||
|
||||
# WARNING: in a live environment, change this to "live" instead of dev
|
||||
# WARNING: in a live environent, change this to "live" instead of dev
|
||||
SS_ENVIRONMENT_TYPE="dev"
|
||||
|
|
1
.gitattributes
vendored
1
.gitattributes
vendored
|
@ -1,4 +1,3 @@
|
|||
.github export-ignore
|
||||
.cow.json export-ignore
|
||||
.cow export-ignore
|
||||
.gitattributes export-ignore
|
||||
|
|
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
@ -1,27 +0,0 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: CI
|
||||
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
|
||||
with:
|
||||
# installer contains a sample behat.yml file, though there are no behat tests to run
|
||||
endtoend: false
|
||||
# require the following in ci.yml rather than composer.json require-dev specifically for installer because unlike
|
||||
# regular modules, require-dev will get installed to projects during `composer create-project silverstripe/installer`
|
||||
composer_require_extra: silverstripe/recipe-testing:^2 silverstripe/frameworktest:^0.4.2 mikey179/vfsstream:^1.6.10
|
||||
extra_jobs: |
|
||||
- endtoend: true
|
||||
endtoend_suite: admin
|
||||
endtoend_config: vendor/silverstripe/admin/behat.yml
|
||||
- endtoend: true
|
||||
endtoend_suite: asset-admin
|
||||
endtoend_config: vendor/silverstripe/asset-admin/behat.yml
|
||||
- endtoend: true
|
||||
endtoend_suite: cms
|
||||
endtoend_config: vendor/silverstripe/cms/behat.yml
|
16
.github/workflows/dispatch-ci.yml
vendored
16
.github/workflows/dispatch-ci.yml
vendored
|
@ -1,16 +0,0 @@
|
|||
name: Dispatch CI
|
||||
|
||||
on:
|
||||
# At 4:00 PM and 5:00 PM
|
||||
schedule:
|
||||
- cron: '0 16,17 * * *'
|
||||
|
||||
jobs:
|
||||
dispatch-ci:
|
||||
name: Dispatch CI
|
||||
# Only run cron on the silverstripe account
|
||||
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Dispatch CI
|
||||
uses: silverstripe/gha-dispatch-ci@v1
|
17
.github/workflows/keepalive.yml
vendored
17
.github/workflows/keepalive.yml
vendored
|
@ -1,17 +0,0 @@
|
|||
name: Keepalive
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# The 8th of every month at 4:50pm UTC
|
||||
schedule:
|
||||
- cron: '50 16 8 * *'
|
||||
|
||||
jobs:
|
||||
keepalive:
|
||||
name: Keepalive
|
||||
# Only run cron on the silverstripe account
|
||||
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Keepalive
|
||||
uses: silverstripe/gha-keepalive@v1
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,5 +4,3 @@
|
|||
/themes/simple/
|
||||
/_resources/
|
||||
/public/_resources/
|
||||
/.graphql-generated/
|
||||
/public/_graphql/
|
||||
|
|
106
.travis.yml
Normal file
106
.travis.yml
Normal file
|
@ -0,0 +1,106 @@
|
|||
language: php
|
||||
|
||||
dist: xenial
|
||||
|
||||
services:
|
||||
- mysql
|
||||
- postgresql
|
||||
- xvfb
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache/files
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- tidy
|
||||
- chromium-chromedriver
|
||||
- chromium-browser
|
||||
|
||||
env:
|
||||
global:
|
||||
- COMPOSER_ROOT_VERSION="4.x-dev"
|
||||
- SS_BASE_URL="http://localhost:8080/"
|
||||
- SS_ENVIRONMENT_TYPE="dev"
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
# Core php tests
|
||||
- php: 7.1
|
||||
env: DB=MYSQL PHPUNIT_TEST=core PDO=1 COMPOSER_ARG=--prefer-lowest
|
||||
- php: 7.2
|
||||
env: DB=MYSQL PHPUNIT_TEST=framework
|
||||
- php: 7.3
|
||||
env: DB=PGSQL PHPUNIT_TEST=core
|
||||
- php: 7.4
|
||||
env: DB=MYSQL PHPUNIT_TEST=core
|
||||
- php: nightly
|
||||
env: DB=MYSQL PHPUNIT_TEST=core COMPOSER_ARG=--ignore-platform-reqs
|
||||
# admin php tests
|
||||
- php: 7.1
|
||||
env: DB=MYSQL PHPUNIT_TEST=admin PDO=1 COMPOSER_ARG=--prefer-lowest
|
||||
- php: 7.2
|
||||
env: DB=PGSQL PHPUNIT_TEST=admin
|
||||
- php: 7.4
|
||||
env: DB=MYSQL PHPUNIT_TEST=admin
|
||||
- php: nightly
|
||||
env: DB=MYSQL PHPUNIT_TEST=admin COMPOSER_ARG=--ignore-platform-reqs
|
||||
# behat tests
|
||||
- php: 7.1
|
||||
env: DB=MYSQL BEHAT_TEST="@framework"
|
||||
- php: 7.2
|
||||
env: DB=MYSQL BEHAT_TEST="@cms"
|
||||
- php: 7.3
|
||||
env: DB=MYSQL BEHAT_TEST="@asset-admin"
|
||||
- php: 7.3
|
||||
env: DB=PGSQL HEALTH_TEST=1
|
||||
- php: 7.4
|
||||
env: DB=MYSQL HEALTH_TEST=1 PDO=1
|
||||
|
||||
before_script:
|
||||
# Extra $PATH
|
||||
- export PATH=/usr/lib/chromium-browser/:$PATH
|
||||
|
||||
# Remove preinstalled Chrome (google-chrome)
|
||||
# this would conflict with our chromium-browser installation
|
||||
# and its version is incompatible with chromium-chromedriver
|
||||
- sudo apt-get remove -y --purge google-chrome-stable || true
|
||||
|
||||
# Init PHP
|
||||
- phpenv rehash
|
||||
- phpenv config-rm xdebug.ini || true
|
||||
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
||||
|
||||
# Install composer dependencies
|
||||
- composer validate
|
||||
# Fix for running phpunit 5 on php 7.4+
|
||||
- composer require --no-update sminnee/phpunit-mock-objects:^3
|
||||
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:^2; fi
|
||||
- if [[ $BEHAT_TEST ]]; then composer require --no-update silverstripe/recipe-testing:^1; fi;
|
||||
- if [[ $BEHAT_TEST == "@asset-admin" ]]; then composer require --no-update silverstripe/frameworktest:^0.1.0; fi;
|
||||
- if [[ $HEALTH_TEST ]]; then composer require --no-update silverstripe/serve:^2; fi;
|
||||
- if ! [[ $HEALTH_TEST ]]; then composer update --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile $COMPOSER_ARG; fi;
|
||||
- if [[ $HEALTH_TEST ]]; then composer update --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile --no-dev $COMPOSER_ARG; fi;
|
||||
|
||||
# Start behat services
|
||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then mkdir artifacts; fi
|
||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then cp composer.lock artifacts/; fi
|
||||
- if [[ $BEHAT_TEST ]]; then (chromedriver > artifacts/chromedriver.log 2>&1 &); fi
|
||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then (vendor/bin/serve --bootstrap-file vendor/silverstripe/cms/tests/behat/serve-bootstrap.php &> artifacts/serve.log &); sleep 3; fi
|
||||
|
||||
script:
|
||||
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit --testsuite $PHPUNIT_TEST; fi
|
||||
- if [[ $BEHAT_TEST ]]; then vendor/bin/behat $BEHAT_TEST; fi
|
||||
- if [[ $HEALTH_TEST ]]; then curl -vfL http://localhost:8080/dev/build?flush; fi
|
||||
- if [[ $HEALTH_TEST ]]; then curl -vfL http://localhost:8080/admin; fi
|
||||
|
||||
after_failure:
|
||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then php ./vendor/silverstripe/framework/tests/behat/travis-upload-artifacts.php --if-env ARTIFACTS_BUCKET,ARTIFACTS_KEY,ARTIFACTS_SECRET --target-path $TRAVIS_REPO_SLUG/$TRAVIS_BUILD_ID/$TRAVIS_JOB_ID --artifacts-base-url https://s3.amazonaws.com/$ARTIFACTS_BUCKET/ --artifacts-path ./artifacts/; fi
|
||||
|
||||
notifications:
|
||||
slack:
|
||||
on_pull_requests: false
|
||||
rooms:
|
||||
secure: pr4kG5tTMqZy1DLejHd1MpPulAE7FtRvTYekWrKIbQF0SkbFz+s3v9fAk2AqCr+SxfV67M3M+sL52/q6TDjeGYJJttwA60gyfH/Qrc/ToCYP3J80Ca/hsk02mya0pF8Kpjg37XP8kNzAllR162mCwYKJgFiXO6Q1eb/aVJwiqmQ=
|
|
@ -1,9 +1,6 @@
|
|||
## Overview
|
||||
|
||||
[![CI](https://github.com/silverstripe/silverstripe-installer/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-installer/actions/workflows/ci.yml)
|
||||
[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
|
||||
|
||||
Base project folder for a Silverstripe ([http://silverstripe.org](http://silverstripe.org)) installation. Required modules are installed via [http://github.com/silverstripe/recipe-cms](http://github.com/silverstripe/recipe-cms). For information on how to change the dependencies in a recipe, please have a look at [https://github.com/silverstripe/recipe-plugin](https://github.com/silverstripe/recipe-plugin). In addition, installer includes [theme/simple](https://github.com/silverstripe-themes/silverstripe-simple) as a default theme.
|
||||
Base project folder for a SilverStripe ([http://silverstripe.org](http://silverstripe.org)) installation. Required modules are installed via [http://github.com/silverstripe/recipe-cms](http://github.com/silverstripe/recipe-cms). For information on how to change the dependencies in a recipe, please have a look at [https://github.com/silverstripe/recipe-plugin](https://github.com/silverstripe/recipe-plugin). In addition, installer includes [theme/simple](https://github.com/silverstripe-themes/silverstripe-simple) as a default theme.
|
||||
|
||||
## Installation ##
|
||||
|
||||
|
@ -19,7 +16,7 @@ Please read our [issue reporting guidelines](https://docs.silverstripe.org/en/4/
|
|||
|
||||
## Development and Contribution ##
|
||||
|
||||
If you would like to make changes to the Silverstripe core codebase, we have an extensive [guide to contributing code](https://docs.silverstripe.org/en/4/contributing/code/).
|
||||
If you would like to make changes to the SilverStripe core codebase, we have an extensive [guide to contributing code](https://docs.silverstripe.org/en/4/contributing/code/).
|
||||
|
||||
## Links ##
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
# See https://docs.silverstripe.org/en/4/developer_guides/email/ for additional information about setting up email
|
||||
---
|
||||
Name: project-emailconfig
|
||||
After:
|
||||
- '#emailconfig'
|
||||
---
|
||||
SilverStripe\Core\Injector\Injector:
|
||||
Swift_Transport:
|
||||
class: Swift_SendmailTransport
|
|
@ -3,20 +3,20 @@
|
|||
"type": "silverstripe-recipe",
|
||||
"description": "The SilverStripe Framework Installer",
|
||||
"require": {
|
||||
"php": "^7.4 || ^8.0",
|
||||
"php": "^7.1 || ^8",
|
||||
"silverstripe/recipe-plugin": "^1.2",
|
||||
"silverstripe/recipe-cms": "4.x-dev",
|
||||
"silverstripe/recipe-cms": "4.7.0-rc1",
|
||||
"silverstripe-themes/simple": "~3.2.0",
|
||||
"silverstripe/login-forms": "4.x-dev"
|
||||
"silverstripe/login-forms": "4.3.0-rc1"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5"
|
||||
"sminnee/phpunit": "^5.7",
|
||||
"sminnee/phpunit-mock-objects": "^3.4.5"
|
||||
},
|
||||
"extra": {
|
||||
"project-files": [
|
||||
"app/_config/*",
|
||||
".env.example",
|
||||
".graphql-generated/*"
|
||||
".env.example"
|
||||
],
|
||||
"public-files": [
|
||||
"assets/*",
|
||||
|
@ -25,12 +25,7 @@
|
|||
"resources-dir": "_resources"
|
||||
},
|
||||
"config": {
|
||||
"process-timeout": 600,
|
||||
"allow-plugins": {
|
||||
"composer/installers": true,
|
||||
"silverstripe/recipe-plugin": true,
|
||||
"silverstripe/vendor-plugin": true
|
||||
}
|
||||
"process-timeout": 600
|
||||
},
|
||||
"prefer-stable": true,
|
||||
"minimum-stability": "dev"
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
<ruleset name="SS3">
|
||||
<description>Coding standard for SilverStripe 4.x</description>
|
||||
|
||||
<file>app</file>
|
||||
|
||||
<!-- Don't sniff third party libraries -->
|
||||
<exclude-pattern>*/vendor/*</exclude-pattern>
|
||||
<exclude-pattern>*/thirdparty/*</exclude-pattern>
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
PHPUnit configuration for SilverStripe
|
||||
|
||||
Requires PHPUnit 9+
|
||||
Requires PHPUnit 5+
|
||||
|
||||
Usage:
|
||||
- "vendor/bin/phpunit": Runs all tests in all folders
|
||||
|
@ -19,41 +18,31 @@
|
|||
It is safe to remove this file for normal website operation.
|
||||
-->
|
||||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
||||
<testsuites>
|
||||
<testsuite name="Default">
|
||||
<directory>app/tests</directory>
|
||||
<directory>vendor/silverstripe/cms/tests/php</directory>
|
||||
<directory>vendor/silverstripe/framework/tests/php</directory>
|
||||
</testsuite>
|
||||
<testsuite name="Default">
|
||||
<directory>app/tests</directory>
|
||||
<directory>vendor/silverstripe/cms/tests/php</directory>
|
||||
<directory>vendor/silverstripe/framework/tests/php</directory>
|
||||
</testsuite>
|
||||
|
||||
<!-- Framework ORM tests are split up to run in parallel -->
|
||||
<testsuite name="framework-core">
|
||||
<directory>vendor/silverstripe/framework/tests/php</directory>
|
||||
<exclude>vendor/silverstripe/framework/tests/php/ORM</exclude>
|
||||
</testsuite>
|
||||
<testsuite name="framework-orm">
|
||||
<directory>vendor/silverstripe/framework/tests/php/ORM</directory>
|
||||
</testsuite>
|
||||
<!-- framework only -->
|
||||
<testsuite name="framework">
|
||||
<directory>vendor/silverstripe/framework/tests/php/</directory>
|
||||
</testsuite>
|
||||
|
||||
<!-- other core components -->
|
||||
<testsuite name="core">
|
||||
<directory>vendor/silverstripe/assets/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/versioned/tests/php/</directory>
|
||||
</testsuite>
|
||||
<!-- other core components -->
|
||||
<testsuite name="core">
|
||||
<directory>vendor/silverstripe/assets/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/versioned/tests/php/</directory>
|
||||
</testsuite>
|
||||
|
||||
<!-- admin components -->
|
||||
<testsuite name="admin">
|
||||
<directory>vendor/silverstripe/admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/asset-admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/cms/tests/</directory>
|
||||
<directory>vendor/silverstripe/config/tests/</directory>
|
||||
<directory>vendor/silverstripe/errorpage/tests/</directory>
|
||||
<directory>vendor/silverstripe/graphql/tests/</directory>
|
||||
<directory>vendor/silverstripe/login-forms/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/mimevalidator/tests/</directory>
|
||||
<directory>vendor/silverstripe/reports/tests/</directory>
|
||||
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<!-- admin components -->
|
||||
<testsuite name="admin">
|
||||
<directory>vendor/silverstripe/admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/asset-admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
|
||||
<directory>vendor/silverstripe/cms/tests/</directory>
|
||||
<directory>vendor/silverstripe/graphql/tests/</directory>
|
||||
<directory>vendor/silverstripe/reports/tests/</directory>
|
||||
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
||||
</testsuite>
|
||||
</phpunit>
|
||||
|
|
Loading…
Reference in New Issue
Block a user