2013-05-12 15:15:35 -05:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
|
|
|
- "0.10"
|
2014-07-14 00:06:21 -05:00
|
|
|
sudo: false
|
2014-07-14 02:12:56 -05:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2014-07-14 04:17:12 -05:00
|
|
|
- bower_components
|
2013-10-29 15:54:37 -05:00
|
|
|
env:
|
2014-03-25 07:42:52 -05:00
|
|
|
- DB=sqlite3 NODE_ENV=testing
|
|
|
|
- DB=mysql NODE_ENV=testing-mysql
|
|
|
|
- DB=pg NODE_ENV=testing-pg
|
2013-11-24 19:29:24 -05:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
2014-03-25 07:42:52 -05:00
|
|
|
- env: DB=pg NODE_ENV=testing-pg
|
2013-08-26 16:28:41 -05:00
|
|
|
before_install:
|
|
|
|
- git clone git://github.com/n1k0/casperjs.git ~/casperjs
|
|
|
|
- cd ~/casperjs
|
2014-01-01 08:31:55 -05:00
|
|
|
- git checkout tags/1.1-beta3
|
2013-08-26 16:28:41 -05:00
|
|
|
- export PATH=$PATH:`pwd`/bin
|
|
|
|
- cd -
|
2014-03-25 07:42:52 -05:00
|
|
|
- if [ $DB == "mysql" ]; then mysql -e 'create database ghost_testing'; fi
|
|
|
|
- if [ $DB == "pg" ]; then npm install pg; psql -c 'create database ghost_testing;' -U postgres; fi
|
2013-05-29 13:26:08 -05:00
|
|
|
before_script:
|
2013-08-26 16:28:41 -05:00
|
|
|
- phantomjs --version
|
2014-07-14 00:06:21 -05:00
|
|
|
- casperjs --version
|