/
.travis.yml
41 lines (40 loc) · 1.24 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
# This file enables the Travis continuous integration system, which
# automatically builds and tests joda-time for each GitHub commit or
# pull request on three separate JDKs.
#
# For more information, see https://travis-ci.org
sudo: false
language: java
jdk:
- oraclejdk8
- oraclejdk7
cache:
directories:
- "$HOME/.m2/repository"
before_cache:
- rm -rf $HOME/.m2/repository/org/joda/time
# install
install:
- mvn --version
script:
- mvn install -e -B
# deploy
before_deploy:
- travis_wait 40 mvn site-deploy -e -B --settings .github/maven-settings.xml
- export DIST_FILE1=$(ls target/joda-time-*-dist.tar.gz)
- export DIST_FILE2=$(ls target/joda-time-*-dist.zip)
deploy:
provider: releases
api_key:
secure: S9aAxkk3ICWqC24GDZK+L6n/xK9OWh4KRWiiSJ4wN4gVoshxLWOvB6aDLMTlQwd5FffzG7RT9aqeYBOihWZWupW4/0xP00yW5WE7dKpURDB0AuOllo1Em1IBL2AlEmhepOss1tn/A/uSApe134Hg8qryOpffAYNWzgzVlYFEM+0=
file:
- "${DIST_FILE1}"
- "${DIST_FILE2}"
skip_cleanup: true
on:
jdk: "oraclejdk7"
tags: true
condition: "$TRAVIS_TAG =~ ^v.*$"
env:
global:
secure: UK9A4eHPOP6XkYbST1kpv3gVEZTBqp79eCF0nqpXejbXihY58MNVZ0aGt8IM/ZThO/UoK+AxWjaSLljE2Neo4ehxvRHsRG0bIhAoCBUjP6f6vuMYTZlRNb9W+NM3RjXvrQGnCM3PTckWaFQ6i5Ny4e1GuETSdh96Yk7WNn6DMJM=