forked from scala-steward-org/scala-steward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (47 loc) · 992 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: scala
os: linux
dist: xenial
scala:
- 2.13.3
- 2.12.10
jdk:
- openjdk8
- openjdk11
services:
- docker
git:
depth: 500
stages:
- name: test
- name: release
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
jobs:
include:
- stage: release
jdk: openjdk8
script: docker login -u $DOCKER_USER -p $DOCKER_PASS && sbt core/docker:publish
name: docker
- script: sbt ci-release
name: jar
before_install:
- git fetch --tags
install:
- pip install --user codecov
script: sbt ++$TRAVIS_SCALA_VERSION validate
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
after_success:
- codecov
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/423a40e87e9aec4665dc
on_success: change
on_failure: always
on_start: never