diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6d48ed9d..00000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -version: ~> 1.0 - -import: - - silverstripe/silverstripe-travis-shared:config/provision/standard.yml - -env: - global: - - REQUIRE_EXTRA="dnadesign/silverstripe-elemental:4.x-dev silverstripe/frameworktest:^0.4.4" - -matrix: - fast_finish: true - include: - # Note: PHPUNIT_COVERAGE_TEST was causing segmentation faults, so has been - # temporarily removed for now - - php: 7.4 - env: DB=PGSQL PHPUNIT_TEST=1 PHPCS_TEST=1 - - php: 8.0 - env: DB=MYSQL PDO=1 PHPUNIT_TEST=1 #PHPUNIT_COVERAGE_TEST=1 - - php: 7.4 - env: DB=MYSQL BEHAT_TEST=1 BEHAT_SUITE="asset-admin --config vendor/silverstripe/asset-admin/behat.yml" - - php: 8.0 - env: DB=PGSQL PHPUNIT_TEST=1 - - php: 8.0 - env: DB=MYSQL BEHAT_TEST=1 BEHAT_SUITE="silverstripe-elemental --config vendor/dnadesign/silverstripe-elemental/behat.yml" - - php: 8.1.0 - env: DB=MYSQL PHPUNIT_TEST=1 - -before_script: - # separately create artifacts directory for asset-admin behat test - - if [[ $BEHAT_TEST ]] && [[ $BEHAT_SUITE =~ asset\-admin ]]; then mkdir ./vendor/silverstripe/asset-admin/artifacts; fi - # separately create artifacts directory for silverstripe-elemental behat test - - if [[ $BEHAT_TEST ]] && [[ $BEHAT_SUITE =~ silverstripe\-elemental ]]; then mkdir ./vendor/dnadesign/silverstripe-elemental/artifacts; fi - -after_failure: - # upload artifacts from asset-admin behat test - - if [[ $BEHAT_TEST ]] && [[ $BEHAT_SUITE =~ asset\-admin ]]; then php ./vendor/silverstripe/framework/tests/behat/travis-upload-artifacts.php --if-env BEHAT_TEST,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 ./vendor/silverstripe/asset-admin/artifacts/; fi - # upload artifacts from elemental behat test - - if [[ $BEHAT_TEST ]] && [[ $BEHAT_SUITE =~ silverstripe\-elemental ]]; then php ./vendor/silverstripe/framework/tests/behat/travis-upload-artifacts.php --if-env BEHAT_TEST,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 ./vendor/dnadesign/silverstripe-elemental/artifacts/; fi diff --git a/README.md b/README.md index d744380a..01246f5e 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,11 @@ # Silverstripe CMS GraphQL Server [![CI](https://github.com/silverstripe/silverstripe-graphql/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-graphql/actions/workflows/ci.yml) -[![codecov](https://codecov.io/gh/silverstripe/silverstripe-graphql/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-graphql) -[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) -This modules serves SilverStripe data as +This modules serves Silverstripe data as [GraphQL](http://facebook.github.io/react/blog/2015/05/01/graphql-introduction.html) -representations, with helpers to generate schemas based on SilverStripe model +representations, with helpers to generate schemas based on Silverstripe model introspection. It layers a pluggable schema registration system on top of the [graphql-php](https://github.com/webonyx/graphql-php) library. The APIs are very similar. @@ -16,7 +15,6 @@ very similar. If you are looking for version 3 [check the `3` branch](https://github.com/silverstripe/silverstripe-graphql/tree/3), which contains documentation inlined into the README. - ## Installing on silverstripe/recipe-cms < 4.11 If your project uses `silverstripe/recipe-cms`, you cannot install the stable version 4 release. You can use version 3 (which will be installed by default), or you can swap to the alpha of version 4 by running this command: @@ -25,6 +23,7 @@ If your project uses `silverstripe/recipe-cms`, you cannot install the stable ve composer require silverstripe/graphql:^4.0.0-alpha --with-all-dependencies ``` +Alternatively, you can remove `silverstripe/recipe-cms` from your root `composer.json` and replace it with the contents of the `composer.json` in `silverstripe/recipe-cms`. ## Documentation diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0281bef3..718b2ac6 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ +