-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
32 lines (32 loc) · 810 Bytes
/
.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
31
32
language: node_js
node_js:
- "stable"
addons:
postgresql: "9.3"
# <DIRTY HACK>
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
# </DIRTY HACK>
env:
- CXX=g++-4.8 DATABASE_URL="postgres://travis:@localhost/uonline" DATABASE_URL_TEST="postgres://travis:@localhost/uonline_test"
# ^^^^^^^^^^^ DIRTY HACK
before_script:
- # test scripts
- ./init.coffee --info || true
- ./init.coffee --create-database both --migrate-tables --unify-export --monsters --optimize
- ./init.coffee --info
- ./add-admin.coffee admin password
- ./init.coffee --drop-database both
- ./init.coffee --info || true
- # Create test database
- psql -c 'create database uonline_test;' -U postgres
script:
- gulp travis
# New stack
sudo: false
cache:
directories:
- node_modules