forked from metabrainz/bookbrainz-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (52 loc) · 1.56 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: node_js
node_js:
- "node"
- "lts/*"
notifications:
email: false
irc:
channels:
- "libera.chat#bookbrainz"
on_success: always
on_failure: always
template:
- "Project %{repository_name} build #%{build_number}: %{result} in %{elapsed_time}: %{build_url}"
cache:
directories:
- node_modules
services:
- postgresql
- elasticsearch
addons:
postgresql: "12"
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- postgresql-12
- postgresql-client-12
- g++-4.8
env:
global:
- CXX=g++-4.8
before_install:
- sudo service postgresql stop
- printf "local all all trust\nhost all all 127.0.0.1 trust" > pg_hba.conf
- sudo chown postgres pg_hba.conf
- sudo mv pg_hba.conf /etc/postgresql/12/main
- sed -e 's/^port.*/port = 5432/' /etc/postgresql/12/main/postgresql.conf > postgresql.conf
- sudo chown postgres postgresql.conf
- sudo mv postgresql.conf /etc/postgresql/12/main
- sudo service postgresql start 12
before_script:
- 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 sql/schemas/musicbrainz.sql -d bookbrainz_test -U postgres
- psql -f sql/schemas/bookbrainz.sql -d bookbrainz_test -U postgres
- psql -f sql/scripts/create_triggers.sql -d bookbrainz_test -U postgres
- ./node_modules/.bin/eslint -v
- sleep 5
script:
- npm run-script test-ci
after_script:
- npm install -g coveralls && coveralls < coverage/lcov.info