forked from geddy/model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (27 loc) · 1.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: node_js
node_js:
- "0.10"
- "0.8"
services:
- mongodb
- postgresql
- riak
- mysql
before_script:
- sudo /etc/init.d/postgresql stop
- sudo cp /etc/postgresql/9.1/main/pg_hba.conf ./
- sudo apt-get remove postgresql postgresql-9.1 -qq --purge
- source /etc/lsb-release
- echo "deb http://apt.postgresql.org/pub/repos/apt/ $DISTRIB_CODENAME-pgdg main" > pgdg.list
- sudo mv pgdg.list /etc/apt/sources.list.d/
- wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
- sudo apt-get update
- sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" install postgresql-9.2 postgresql-contrib-9.2 -qq
- sudo /etc/init.d/postgresql stop
- sudo cp ./pg_hba.conf /etc/postgresql/9.2/main
- sudo /etc/init.d/postgresql start
- psql -c 'create database model_test;' -U postgres
- sudo apt-get install mysql-server mysql-client
- mysql -u root -e "CREATE DATABASE model_test COLLATE latin1_general_cs;"
- sudo apt-get install sqlite3 libsqlite3-dev
script: jake test --trace