forked from fronteerio/grasshopper
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (37 loc) · 1.21 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
38
39
40
41
42
43
44
45
46
sudo: false
language: node_js
node_js:
- "0.10.30"
branches:
only:
- master
env:
global:
- secure: "YRS6gw2FhSlkRgXmzvyAdqEGLVZozrS4pESBlbX8Zi9zVIAI2+ExJb/GlhWSvcePeRBegvqE+/9K/joDEecEUacf0Ky7StCNZ4l4sKnE65ut7XOXwbhwKfOOHuFIqvrLMRKN+xFy3JrvN22v2dAoP5lR5yyz6pf6rX0PJjx0gYs="
- secure: "E0yI8WcCo5YdHywbMgyRRE3a/WbzXMnvCZsjPP0cPjFDjzqqDLefUoNKKxgDJDPTcreM7DjkXauIt6tw85hEMlvsWJ0svVWLFX9tNIt0EG3Tv3MxEoKkWfKBHC7JYpcwLVM9HoYVfdVBfdu0RAefrgdM+28HwCG/Q+toSPAuzdg="
addons:
postgresql: "9.3"
before_install:
# Position ourselves to start the test in "script" phase
- cd ~/build/CUL-DigitalServices/grasshopper
# Configure postgres
- psql -c 'create database grasshoppertest;' -U postgres
- psql grasshoppertest -c 'create extension pg_trgm;' -U postgres
- printf "\n\nconfig.db.username = 'postgres';" >> config.js
script:
- grunt test-coverage-coveralls
after_failure:
# Compress the logs and upload them to Amazon S3
- gzip tests.log
- etc/scripts/travis/upload_logs
after_success:
# Package and upload to Amazon S3
- ./etc/scripts/travis/upload.sh
notifications:
email:
irc:
channels:
- "irc.freenode.org#ucam-ds"
skip_join: true