-
Notifications
You must be signed in to change notification settings - Fork 86
/
.travis.yml
48 lines (46 loc) · 1.51 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
language: scala
sudo: false
matrix:
include:
- scala: 2.11.11
jdk: oraclejdk8
script: umask 0022 && ./sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport mimaReportBinaryIssues
after_success:
- bash <(curl -s https://codecov.io/bash)
- scala: 2.12.2
jdk: oraclejdk8
script: umask 0022 && ./sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport mimaReportBinaryIssues
after_success:
- bash <(curl -s https://codecov.io/bash)
before_install:
- sudo sed -i 's/127.0.1.1/127.0.0.1/' /etc/hosts
before_script:
- sleep 15 # https://docs.travis-ci.com/user/database-setup/#MongoDB
- mongo mydb_test --eval 'db.createUser({user:"travis",pwd:"test",roles:["readWrite"]});'
- mysql -u root -e "create database storehaus_test;"
- mysql -u root -e "create user 'storehaususer'@'localhost' identified by 'test1234';"
- mysql -u root -e "grant all on storehaus_test.* to 'storehaususer'@'localhost';"
services:
- mysql
- redis-server
- memcache
- mongodb
cache:
directories:
- $HOME/.sbt/0.13/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.ivy2/cache
- $HOME/.nvm
before_cache:
- du -h -d 1 $HOME/.ivy2/cache
- du -h -d 2 $HOME/.sbt/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/4e859a6b499b2b68a647
on_success: change
on_failure: always
on_start: never