Skip to content

Commit

Permalink
Merge pull request #10 from alarner/travis
Browse files Browse the repository at this point in the history
Add travis.yml
  • Loading branch information
alarner committed Sep 15, 2016
2 parents 78dedfd + 929b4f7 commit 68ec2e0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: node_js
sudo: false
node_js:
- "5"
- "6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
before_script:
- psql -c 'create database test;' -U postgres
services:
- postgresql
- redis
env:
- TRAVIS=travis CXX=g++-4.8
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"knex": "^0.10.0",
"knex-cleaner": "^1.1.1",
"mocha": "^2.4.5",
"pg": "^6.1.0",
"sinon": "^1.17.3",
"sqlite3": "^3.1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let knex = require('knex')({
useNullAsDefault: true,
connection: {
host: 'localhost',
user: 'alarner',
user: 'postgres',
database: 'test'
},
seeds: {
Expand Down

0 comments on commit 68ec2e0

Please sign in to comment.