Skip to content

Commit

Permalink
Merge pull request #44 from sminnee/smoke-test
Browse files Browse the repository at this point in the history
NEW: Add a smoke test.
  • Loading branch information
dhensby authored Jun 15, 2016
2 parents 4bf29ea + 2819f7b commit 2215c72
Show file tree
Hide file tree
Showing 6 changed files with 494 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build/
vendor/
.DS_Store
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,18 @@ env:
before_script:
- git config user.email "[email protected]"
- git config user.name "SilverStripe"
- '[ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ] && git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*;'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ] && git config push.default simple'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ] && git fetch --unshallow'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ] && git remote set-url origin "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}"'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ] && git checkout -qf "${TRAVIS_COMMIT}"'
# This inverted conditional format ensures that PRs/non-master branches don't report a failure
- '[ "${TRAVIS_PULL_REQUEST}" != "false" -o "${TRAVIS_BRANCH}" != "master" ] || git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" -o "${TRAVIS_BRANCH}" != "master" ] || git config push.default simple'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" -o "${TRAVIS_BRANCH}" != "master" ] || git fetch --unshallow'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" -o "${TRAVIS_BRANCH}" != "master" ] || git remote set-url origin "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}"'
- '[ "${TRAVIS_PULL_REQUEST}" != "false" -o "${TRAVIS_BRANCH}" != "master" ] || git checkout -qf "${TRAVIS_COMMIT}"'

script:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" -a "${TRAVIS_BRANCH}" = "master" ] && bin/upload-phar > /dev/null 2>&1 || false'
- composer selfupdate || true
- composer install --dev --no-progress --no-interaction
- bin/build-phar
- vendor/bin/phpunit tests

after_success:
- '[ "${TRAVIS_PULL_REQUEST}" != "false" -o "${TRAVIS_BRANCH}" != "master" ] || bin/upload-phar > /dev/null 2>&1'
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
SSPak
=====

[![Build Status](http://img.shields.io/travis/silverstripe/sspak.svg?style=flat-square)](https://travis-ci.org/silverstripe/sspak)
[![Code Quality](http://img.shields.io/scrutinizer/g/silverstripe/sspak.svg?style=flat-square)](https://scrutinizer-ci.com/g/silverstripe/sspak)

SSPak is a SilverStripe tool for managing database and assets content, for back-up, restoration, or transfer between
environments.

Expand Down
18 changes: 18 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "silverstripe/sspak",
"description": "CLI tool for saving & loading data in SilverStripe installations",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Sam Minnee",
"email": "[email protected]"
}
],
"autoload": {
"classmap": [ "src/" ]
},
"require": {},
"require-dev": {
"phpunit/phpunit": "^3.7"
}
}
Loading

0 comments on commit 2215c72

Please sign in to comment.