forked from asbjornu/drywall
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (37 loc) · 1 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
31
32
33
34
35
36
37
language: node_js
sudo: false
env:
- CXX=g++-4.8 NODE_ENV=test
node_js:
- "5.5.0"
- "4.2"
- "4.1"
- "4.0"
addons:
postgresql: 9.4
istanbul:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_script:
- cp config.js.tmpl config.js
- sed -i -e 's/<username>/drywall/g' config.js
- sed -i -e 's/<password>/k3yb0ardc4t/g' config.js
- sed -i -e 's/<test-database>/drywall/g' config.js
- psql --command="drop database if exists drywall;"
- psql --command="drop role if exists drywall;"
- psql --command="create user drywall with password 'k3yb0ardc4t';"
- createdb --owner=drywall drywall
script:
- istanbul cover ./node_modules/mocha/bin/_mocha specs --report lcovonly -- -R spec
after_success:
- ./node_modules/.bin/codecov
notifications:
irc:
channels:
- "irc.piratpartiet.no#travis2pirno"
channel_key: 'pegleg'
template:
- "%{author} pushed %{commit} to %{repository_name} (%{branch}): %{message} <%{build_url}> - %{commit_subject}"