mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Merge pull request #1555 from halfdan/1333-allowed-failure
Add postgres build and allow it to fail.
This commit is contained in:
commit
cf4fdb3a49
@ -4,6 +4,10 @@ node_js:
|
||||
env:
|
||||
- DB=sqlite3
|
||||
- DB=mysql
|
||||
- DB=pg
|
||||
matrix:
|
||||
allow_failures:
|
||||
- env: DB=pg
|
||||
before_install:
|
||||
- git submodule update --init
|
||||
- gem update --system
|
||||
@ -15,6 +19,7 @@ before_install:
|
||||
- export PATH=$PATH:`pwd`/bin
|
||||
- cd -
|
||||
- if [ $DB == "mysql" ]; then mysql -e 'create database ghost_travis'; fi
|
||||
- if [ $DB == "pg" ]; then psql -c 'create database ghost_travis;' -U postgres; fi
|
||||
before_script:
|
||||
- phantomjs --version
|
||||
- casperjs --version
|
||||
|
@ -116,6 +116,26 @@ config = {
|
||||
host: '127.0.0.1',
|
||||
port: '2369'
|
||||
}
|
||||
},
|
||||
|
||||
// ### Travis
|
||||
// Automated testing run through GitHub
|
||||
'travis-pg': {
|
||||
url: 'http://127.0.0.1:2369',
|
||||
database: {
|
||||
client: 'pg',
|
||||
connection: {
|
||||
host : '127.0.0.1',
|
||||
user : 'postgres',
|
||||
password : '',
|
||||
database : 'ghost_travis',
|
||||
charset : 'utf8'
|
||||
}
|
||||
},
|
||||
server: {
|
||||
host: '127.0.0.1',
|
||||
port: '2369'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -55,7 +55,8 @@
|
||||
"when": "2.5.1"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"mysql": "2.0.0-alpha9"
|
||||
"mysql": "2.0.0-alpha9",
|
||||
"pg": "~2.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"blanket": "~1.1.5",
|
||||
|
Loading…
Reference in New Issue
Block a user