-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
41 lines (35 loc) · 1.81 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
sudo: false
language: scala
jdk: openjdk8
# https://eed3si9n.com/sbt-1.4.8
install:
- |
# update this only when sbt-the-bash-script needs to be updated
export SBT_LAUNCHER=1.4.8
export SBT_OPTS="-Dfile.encoding=UTF-8"
curl -L --silent "https://github.com/sbt/sbt/releases/download/v$SBT_LAUNCHER/sbt-$SBT_LAUNCHER.tgz" > $HOME/sbt.tgz
tar zxf $HOME/sbt.tgz -C $HOME
sudo rm /usr/local/bin/sbt
sudo ln -s $HOME/sbt/bin/sbt /usr/local/bin/sbt
script:
- sbt test scripted publishLocal
deploy:
provider: script
skip_cleanup: true
script:
- cp .travis/cloudsmith-buildinfo.sbt cloudsmith.sbt && sbt ReproducibleBuilds/publish && cp .travis/cloudsmith-full.sbt cloudsmith.sbt && sbt publish
on:
tags: true
repo: raboof/sbt-reproducible-builds
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
env:
global:
# encrypt with: travis encrypt CLOUDSMITH_API_KEY=...
- secure: "qE5l6U8FOjg6ajHWOCuUKpV116O570wgec9AK0SYKDQ0fL6BWBRC9dNIKxqWaurV508/+7SRtEYgXlLXm/MJUjKJzu90707bvXNFSOSLTgYAEMYXeksd4H+0TShxil0erA5VH6O7CtS4tfIL/amJLTZPZCZOsT7UIin2SqRovlOftgZJF1ujveEpjSPJ4IFYRlKe8pOkZalactXUNI7aDI2yzv+WV2LDCMr2k8JsSnzIPNXNbeG8puRmTAuqdxF/fi3MQOFry538RWk0RCqTkAeSWxJhwlq/DqZ+T5D08ZpTSNgHmOyDnxtdLhNXWVlnNqdGCXGq9MVYnEtQN+3iR7+bv9FDXLc3Ev0u4oGuP+NFq0khiSUxcrXb0dO5J0TCg3xgXKI4K4MaSb35LK+EFUCRGGTsfcwcDRHS85PIC5SN38gM10NcIssRn1h0eUOBTQNw6rfNksBy1PmlboHA4SVf9ZGPMrkaaLOBYcOt2LR1nrtuRdvqsBfd9sJKqj0fOtusP9o0BAuee5YyTG91W2WrSSfo8jgwrinBMwsyGTHuqwV95ZEDin9mJZ6p8D1LcbYbSVgSvGUX6XqK9OAA3tdlw4pl7Yj9ldrvXpxdYfcY358bWlUJs2qwIMIsJ6cG2dD8gyF/7mY4UfCN0QZ2iJG4Ko+k21udddUpAmMOgUc="