Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Add travis-ci for sugardough reference project.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Dec 14, 2014
1 parent dfd4cc3 commit a868485
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
@@ -0,0 +1,15 @@
language: python
python:
- 2.7
addons:
postgresql: "9.1"
before_script:
- createdb sugardough_db
install:
- pip install tox cookiecutter
env:
- TOX_ENV=flake8
- TOX_ENV=docs
- TOX_ENV=tests
script:
./bin/test_sugardough.sh
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -17,6 +17,7 @@ Features:
* [peep](https://github.com/erikrose/peep) ready.

[![Requirements Status](https://requires.io/github/mozilla/sugardough/requirements.svg?branch=master)](https://requires.io/github/mozilla/sugardough/requirements/?branch=master)
[![Build Status](https://travis-ci.org/mozilla/sugardough.svg)](https://travis-ci.org/mozilla/sugardough)

Create a sugardough project
---------------------------
Expand Down
2 changes: 0 additions & 2 deletions bin/fabricate-cookiecutter.py
Expand Up @@ -48,5 +48,3 @@ def global_replace(FROM, TO, dry_run=False):
new_dirname = new_dirname.replace('sugardough', '{{ cookiecutter.project_name }}')
new_full_path = os.path.join(BASEDIR, new_dirname)
shutil.move(DOUGHDIR_TEMP, new_full_path)


9 changes: 9 additions & 0 deletions bin/test_sugardough.sh
@@ -0,0 +1,9 @@
#!/bin/bash
set -e

TDIR=`mktemp -d`
cp cookiecutter.json $TDIR/
cd $TDIR
cookiecutter --no-input $OLDPWD
cd sugardough
tox -e $TOX_ENV
1 change: 1 addition & 0 deletions sugardough/.gitignore
Expand Up @@ -4,3 +4,4 @@
docs/_build
.tox/
MANIFEST
.coverage
1 change: 1 addition & 0 deletions {{ cookiecutter.project_name }}/.gitignore
Expand Up @@ -4,3 +4,4 @@
docs/_build
.tox/
MANIFEST
.coverage

0 comments on commit a868485

Please sign in to comment.