-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.01 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
dist: bionic
os: linux
if: branch = master OR tag IS present
language: scala
jdk:
- openjdk8
jobs:
include:
- stage: Check
script: sbt -Dfile.encoding=UTF8 scalafmtSbtCheck scalafmtCheckAll
- stage: Test
name: "Test & Coverage"
script: sbt -Dfile.encoding=UTF8 coverage test coverageReport coveralls
- stage: Test
name: "Scripted Test"
script: sbt -Dfile.encoding=UTF8 scripted
- stage: Deploy
script: true
deploy:
provider: script
script: sbt -Dfile.encoding=UTF8 publish
cleanup: false
edge: true
on:
tags: true
stages:
- Check
- Test
- name: Deploy
if: repo = avdv/sbt-hyperlink AND tag =~ /^v[0-9]+(\.[0-9]+){2}$/
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" -delete
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
# These directories are cached to S3 at the end of the build
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/