-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
44 lines (44 loc) · 1.06 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
sudo: required
language: scala
scala:
- 2.13.10
dist: xenial
jdk:
- openjdk11
services:
- docker
env:
global:
- QUAY_REPO="quay.io/opentargets/platform-api"
cache:
directories:
- $HOME/.cache/coursier
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
script:
- sbt ++${TRAVIS_SCALA_VERSION} scalafmtCheckAll
- sbt ++$TRAVIS_SCALA_VERSION clean compile
- sbt ++$TRAVIS_SCALA_VERSION coverage "testOnly * -- -l test_configuration.IntegrationTestTag" coverageReport
- sbt ++$TRAVIS_SCALA_VERSION dist
deploy:
provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file_glob: true
file: "target/universal/ot-platform-api-latest.zip"
on:
repo: opentargets/platform-api
tags: true
all_branches: true
notifications:
email:
recipients:
on_success: never
on_failure: always
after_success:
- ./deploy_quay.sh