forked from metabrainz/bookbrainz-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.17 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
47
language: node_js
node_js:
- "node"
- "7"
- "6"
notifications:
email: false
irc:
channels:
- "chat.freenode.net#metabrainz"
on_success: always
on_failure: always
template:
- "Project %{repository_name} build #%{build_number}: %{result} in %{elapsed_time}: %{build_url}"
sudo: false
cache:
directories:
- node_modules
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_script:
- git clone https://github.com/bookbrainz/bookbrainz-sql.git
- psql -c 'CREATE DATABASE bookbrainz_test;' -U postgres
- psql -c 'CREATE EXTENSION "uuid-ossp"; CREATE SCHEMA musicbrainz; CREATE SCHEMA bookbrainz;' -d bookbrainz_test -U postgres
- psql -f bookbrainz-sql/schemas/musicbrainz.sql -d bookbrainz_test -U postgres
- psql -f bookbrainz-sql/schemas/bookbrainz.sql -d bookbrainz_test -U postgres
- psql -f bookbrainz-sql/scripts/create_triggers.sql -d bookbrainz_test -U postgres
- cp ./config/test.json.example ./config/test.json
- ./node_modules/.bin/eslint -v
script:
- npm run-script test-ci
after_script:
- npm install -g coveralls && coveralls < coverage/lcov.info