-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (40 loc) · 1.35 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
# BRAIN-IoT service robotic .travis-ci.yml
# https://docs.gitlab.com/ce/ci/yaml/
# docker image with maven 3 and java 11
#image: maven:3-jdk-11
################
### Language ###
################
language: java
###########
### JDK ###
###########
#jdk:
# - oraclejdk11
env:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
MAVEN_CLI_OPTS: "'-s .m2/settings.xml -B'"
MAVEN_DEPLOY_OPTS: "'-DaltReleaseDeploymentRepository=brain-iot-releases::default::https://nexus.repository-pert.ismb.it/repository/maven-releases -DaltSnapshotDeploymentRepository=brain-iot-snapshots::default::https://nexus.repository-pert.ismb.it/repository/maven-snapshots'"
# CI_DEBUG_TRACE: "true"
# Cache downloaded dependencies and plugins between builds.
cache:
directories:
- .m2/repository
before_install:
- wget https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.zip
- unzip -qq apache-maven-3.6.3-bin.zip
- export M2_HOME=$PWD/apache-maven-3.6.3
- export PATH=$M2_HOME/bin:$PATH
install:
- mvn $MAVEN_CLI_OPTS initialize
# - ls .m2/repository/org/ros
# - ls .m2/repository/org/apache/ws
script:
- mvn $MAVEN_CLI_OPTS verify
deploy:
provider: script
script: mvn $MAVEN_CLI_OPTS $MAVEN_DEPLOY_OPTS clean package org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy
skip_cleanup: true
on:
branch: main
#end