forked from akka/akka-http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (60 loc) · 2.49 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: ~> 1.0
os: linux
dist: xenial
language: scala
scala:
- "2.12.11" # not used for anything but still needed to have sbt available
git:
depth: 500 # to make sure we have enough depth to power git describe for sbt-dynver (used for snapshot version numbers)
before_install:
# make comparing to origin/master work
- git remote set-branches --add origin master && git fetch
- whereis java
- java -version
# Initialize launcher from the correct URL so that later sbt runs work out of the box.
# Travis' default sbt launch script refers to `repo.scala-sbt.org` for downloading the launcher
# which currently doesn't work any more
- sbt -sbt-launch-repo https://repo1.maven.org/maven2 exit
addons:
apt:
sources:
# Official debian package for AdoptOpenJDK from https://adoptopenjdk.net/installation.html#linux-pkg
- sourceline: deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ xenial main
key_url: https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
packages:
- graphviz
- adoptopenjdk-8-hotspot
before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.cache/coursier
env:
global:
- JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64
- PATH=/usr/lib/jvm/adoptopenjdk-8-hotspot-amd64/bin:$PATH
# override default (release to maven central) to only close and go to staging repo
- CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"
script:
- sbt -jvm-opts .jvmopts-travis "$CMD"
jobs:
include:
- stage: mima
env: CMD="+mimaReportBinaryIssues"
- stage: whitesource
script: git branch -f "$TRAVIS_BRANCH" && git checkout "$TRAVIS_BRANCH" && sbt whitesourceCheckPolicies whitesourceUpdate
- stage: publish
env: CMD="ci-release"
name: artifacts to bintray
- script: eval "$(ssh-agent -s)" && echo $SCP_SECRET | base64 -d > /tmp/id_rsa && chmod 600 /tmp/id_rsa && ssh-add /tmp/id_rsa && sbt -jvm-opts .jvmopts-travis -Dakka.genjavadoc.enabled=true publishRsync
name: paradox and api docs to gustav
stages:
- name: mima
if: repo=akka/akka-http AND ( ( branch = master AND type = push ) OR tag =~ ^v )
- name: whitesource
if: repo=akka/akka-http AND ( ( branch = master AND type = push ) OR tag =~ ^v )
- name: publish
if: repo=akka/akka-http AND ( ( branch = master AND type = push ) OR tag =~ ^v )