-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (37 loc) · 1.15 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
dist: trusty
os: linux
jobs:
include:
- language: java
addons:
postgresql: "9.4"
jdk: oraclejdk8
services:
- docker
before_script:
- psql -V
- psql -c 'create user translatr;' -U postgres
- psql -c 'create database "translatr-test";' -U postgres
- psql -c 'grant all privileges on database "translatr-test" TO translatr;' -U postgres
script:
- bin/activator test -Dconfig.file=test.conf
# - bin/activator it:test -Dconfig.file=it.conf
# after_success:
# - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
# - bin/activator docker:publish
cache:
timeout: 86400
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
- language: node_js
node_js: "12.0"
before_install:
- cd ui
script:
- npm run build
- npm run coveralls