forked from exasol/cloud-storage-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (69 loc) · 2.23 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
75
76
77
78
79
80
81
82
83
language: scala
sudo: required
dist: trusty
services: docker
addons:
apt:
packages:
- shellcheck
env:
matrix:
- RELEASE=false
before_install:
- git fetch --tags
- docker pull exasol/docker-db:latest
matrix:
include:
- jdk: openjdk8
scala: 2.11.12
- jdk: oraclejdk8
scala: 2.11.12
- jdk: openjdk8
scala: 2.12.10
- jdk: oraclejdk8
scala: 2.12.10
env: RELEASE=true
script:
- travis_wait 30 ./scripts/ci.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
- ./sbtx coveralls
before_deploy:
- echo "Ensure assembly jar file is created for a $TRAVIS_TAG"
- ./sbtx assembly
- ls -lh ./target/scala-2.12/
- export JAR_VERSION=${TRAVIS_TAG#v}
- echo "Jar artifact version $JAR_VERSION"
deploy:
provider: releases
api_key:
secure: |-
Iehp4fsI91qQ5ly7obt/PU19J+2SE4cYdFWgUYUFehpppI69MmOMWup40NvXpMPMpkurIZcLTlRdodGITTIiceRFx10
Da4zkHEqBd+pKEv7NcwMgFL0LoRrEHHuXwO0y12UNK8PcKnLxMng+SavSNBCjr25q11OA2N8IPnPLN40z5GLfWAzeAy
C43HECTquW8neaybTVQwQyagBG90/+Pdek0CfsLs71NHUHqr5/JD/TBGIy/vCWCJxzSts9seV27POfkEF0NBtI0Glux
o0F5vsEJLpF/i9wRFKf8yAkW/7zG4m5sPA7V+O9XtFIUlvOO6FeaiW5wYcyUSrc7+TQdnfylnY+Y14b7tL2ugUzTvEi
tzBXPjzZApyAHtirchtDEi2FasAB+dTXZP6jjPV7JiVw1F2HXb/LEZfabwp0esGuDbhEz7GspzizVI5Ro7u1xY3MInv
hF48soVocY1xus5AkKiMxrW6d93Th2XTGoyRzJbwm4iXPY1UIKndlkEjFq3RsZRIPND9iURmp/qcwvlIdB29SsczYbH
p3QOQn/NTC6SZbmgAW4xZpCRUUZwfOXP4RacIcDKHlsUjqBZwmSmxK/vJ6KRNR4yxBn7cVlm060cD5l3TmpuUC6X9JI
EPAkYJyNJ1CtRUkYDbgBn+Eof5X3jOZqo8pI51YBKdnz0E=
file: ./target/scala-2.12/cloud-storage-etl-udfs-${JAR_VERSION}.jar
skip_cleanup: true
on:
repo: exasol/cloud-storage-etl-udfs
tags: true
condition: $RELEASE = true && $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$
cache:
directories:
- "$HOME/.sbt/1.0"
- "$HOME/.sbt/boot/scala*"
- "$HOME/.sbt/cache"
- "$HOME/.sbt/launchers"
- "$HOME/.ivy2"
- "$HOME/.coursier"
before_cache:
- du -h -d 1 $HOME/.ivy2/
- du -h -d 2 $HOME/.sbt/
- du -h -d 4 $HOME/.coursier/
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- find $HOME/.coursier/cache -name "*.lock" -type f -delete