deviateltd / silverstripe-cacheable

Object cache for SilverStripe based websites for performance enhancement
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Add shippable CI config #14

Open phptek opened 9 years ago

phptek commented 9 years ago

Add YML config such that tests are run and docs are generated:

phptek commented 9 years ago

Scrutinizer seems to have the ability to run unit tests also. Seeing as we wish to add code-quality metrics to our OS modules, why use a separate CI service like Travis/Shippable if Scrutinizer does what we need in the one SaaS?

phptek commented 9 years ago

I have had several goes at this without success using Shippable. Perhaps we should look at Travis instead?

phptek commented 9 years ago

SilverStripe Travis support works via the https://github.com/silverstripe-labs/silverstripe-travis-support module.

An example .travis.yml file might look like:

# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details
language: php 
php: 
  - 5.3
  - 5.4
env:
  - DB=MYSQL CORE_RELEASE=3.1
matrix:
  include:
    - php: 5.3
      env: DB=MYSQL
    - php: 5.4
      env: DB=MYSQL

branches:
  master

before_script:
  - composer self-update || true
  - phpenv rehash
  - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
  - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
  - cd ~/builds/ss

script: 
  - phpunit silverstripe-cacheable/tests