-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
79 lines (64 loc) · 2.44 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
language: java
jdk:
# - openjdk8
- oraclejdk8
env:
- MAVEN=3.6.1
cache:
directories:
- ${HOME}/.m2
before_install:
- ulimit -a && free -m
- chmod +x .travis/*
- echo ${GPG_PUBLIC_KEYS} | base64 --decode > /tmp/frekele-pubkey.asc
- echo ${GPG_PRIVATE_KEYS} | base64 --decode > /tmp/frekele-privkey.asc
- echo ${GPG_OWNERTRUST} | base64 --decode > /tmp/frekele-ownertrust.asc
#- gpg --keyserver pgp.mit.edu --recv-key ${FREKELE_GPGKEY}
- gpg --import /tmp/frekele-pubkey.asc
- gpg --import /tmp/frekele-privkey.asc
- gpg --import-ownertrust /tmp/frekele-ownertrust.asc
- sudo rm -f /etc/mavenrc && sudo rm -f ${HOME}/.mavenrc
- export MVN_HOME=/tmp/maven-${MAVEN} && export M2_HOME=${MVN_HOME}
- mkdir ${MVN_HOME}
- export MAVEN_OPTS="-Dmaven.repo.local=${HOME}/.m2/repository -Xms1024m -Xmx4096m -XX:PermSize=512m"
- export PATH=${MVN_HOME}/bin:$PATH
- sudo apt-get install -qq jq
- wget -O ~/codacy-coverage-reporter-assembly-latest.jar "https://github.com/codacy/codacy-coverage-reporter/releases/download/6.0.0/codacy-coverage-reporter-6.0.0-assembly.jar"
#- wget -O ~/codacy-coverage-reporter-assembly-latest.jar "https://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.codacy&a=codacy-coverage-reporter&v=LATEST"
#- wget -O ~/codacy-coverage-reporter-assembly-latest.jar $(curl https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url)
install:
- wget -qO- https://archive.apache.org/dist/maven/maven-3/${MAVEN}/binaries/apache-maven-${MAVEN}-bin.tar.gz | tar xz --strip 1 -C ${MVN_HOME}
before_script:
script:
- ${MVN_HOME}/bin/mvn --settings .travis/settings.xml install -Dgpg.skip -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -B -V
- ulimit -a && free -m
before_cache:
after_success:
- bash <(curl -s https://codecov.io/bash)
- java -jar ~/codacy-coverage-reporter-assembly-latest.jar report -l Java -r target/site/jacoco/jacoco.xml
after_failure:
- echo "FAILURE"
- ulimit -a
- free -m
before_deploy:
deploy:
-
provider: script
script:
- .travis/deploy.sh
skip_cleanup: true
on:
repo: frekele/elasticsearch-mapping-builder
branch: master
jdk: oraclejdk8
-
provider: script
script:
- .travis/deploy.sh
skip_cleanup: true
on:
repo: frekele/elasticsearch-mapping-builder
tags: true
jdk: oraclejdk8
after_deploy:
after_script: