-
Notifications
You must be signed in to change notification settings - Fork 542
/
.travis.yml
56 lines (49 loc) · 1.38 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
notifications:
email:
- deepdive-dev@lists.stanford.edu
language:
- scala
- python
scala:
- "2.10.5"
sbt_args:
jdk:
- openjdk7
python:
- "2.7"
services:
- postgresql
cache:
directories:
- $HOME/.ivy2/cache
env:
global:
- PGUSER: postgres
- PGPASSWORD:
- PGPORT: 5432
- PGHOST: localhost
- DBNAME: deepdive_test
# Parallel jobs aren't effective since the `install` step currently takes most of the time.
# matrix: # NOTE we're on a paid plan that gives us 2 parallel jobs
# # 1. Unit tests with PostgreSQL and integration tests with MySQL
# - TEST_ONLY: "'test/postgresql/scalatests.bats test/mysql/*.bats'"
# TEST_EXCEPT: test/mysql/scalatests.bats
# # 2. More integration tests with PostgreSQL
# - TEST_ONLY:
# TEST_EXCEPT: "'test/postgresql/scalatests.bats test/mysql/*.bats'"
before_install:
# Check coding style before performing the build and tests
- make checkstyle
install:
- make depends
- sudo apt-get install -qq -y postgresql-plpython-`ls -1 /var/lib/postgresql | head -n 1` # XXX for piggy and plpy extractor tests
- make test-build # XXX doing it here to hide the noise from sbt and unzip
script:
# Run all tests
- make test
# Check broken links in documentation
# TODO check only when doc/ has changed
#- make -C doc/ linkcheck
after_success:
# Report test coverage
- sbt coverageReport coveralls