-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (30 loc) · 972 Bytes
/
.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
# Travis CI Configuration file
# @link https://travis-ci.org/
# Using Java for the project
language: java
matrix:
include:
# Code artifacts deployed with OpenJDK7
- jdk: openjdk7
env: DEPLOY=true
# Documentation deployed with JDK8
- jdk: oraclejdk8
env: DEPLOY_DOCS=true
before_install:
# Gets scripts
- git clone -b v1.1.3 --single-branch https://github.com/Bernardo-MG/ci-shell-scripts.git ~/.scripts
# Sets scripts as executable
- chmod -R +x ~/.scripts/*
# Prepares CI environment
- source ~/.scripts/travis/load-travis-environment.sh
before_script:
# Creates Maven settings
- ~/.scripts/java/maven/create-maven-settings.sh $VERSION_TYPE
script:
# Unit and integration tests are run
- mvn clean verify
after_success:
# Documentation deployment script
- ~/.scripts/java/maven/deploy-site.sh $DO_DEPLOY_DOCS deployment
# Code artifacts deployment script
- ~/.scripts/java/maven/deploy.sh $DO_DEPLOY deployment