-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
37 lines (29 loc) · 1019 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
language: scala
sudo: false
scala:
- "2.12.2"
- "2.11.12"
jdk:
- oraclejdk8
# build all PRs and only master branch and branches starting with either
# 'deploy-*', 'deploy/*', 'ci-*' or 'ci/*'
branches:
only:
- master
- /^(?i:deploy)(-|\/).*$/
- /^(?i:ci)(-|\/).*$/
# cache local ivy cache, but delete properties and lock files beforehand
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
# if build is a pull request and origin branch starts with doc/ skip the build (successfully)
before_install:
- if [[ "$TRAVIS_PULL_REQUEST" != "false" && "$TRAVIS_PULL_REQUEST_BRANCH" == doc/* ]]; then exit 0; fi
# build script (sbt test and sbt run sampleapp.Main)
script:
- sbt ++$TRAVIS_SCALA_VERSION coverage test coverageReport coverageAggregate codacyCoverage
- sbt ++$TRAVIS_SCALA_VERSION "sampleapp/runMain de.up.hpi.informationsystems.sampleapp.Main"