forked from scala-steward-org/scala-steward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 857 Bytes
/
.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
language: scala
jdk:
- openjdk8
- openjdk11
scala:
- 2.12.10
services:
- docker
git:
depth: 500
before_install:
- git fetch --tags
before_cache:
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- find $HOME/.sbt -name "*.lock" -type f -delete
cache:
directories:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
install:
- pip install --user codecov
script: sbt ++$TRAVIS_SCALA_VERSION validate
after_success:
- codecov
stages:
- name: test
- name: release
if: (branch = master AND type = push) OR (tag IS present)
jobs:
include:
- stage: release
jdk: openjdk8
script: docker login -u $DOCKER_USER -p $DOCKER_PASS && sbt docker:publish
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/0c488817d5dc313a8cc7
on_success: change
on_failure: always
on_start: never