forked from ingenieux/beanstalker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
44 lines (40 loc) · 1.76 KB
/
.drone.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
image: oraclejdk8
env:
- AWS_ACCESS_KEY_ID=$$AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$$AWS_SECRET_ACCESS_KEY
- EC2_KEY_NAME=$$EC2_KEY_NAME
- AWSEB_S3_BUCKET=$$AWSEB_S3_BUCKET
- SONAR_HOST=$$SONAR_HOST
- SONAR_JDBC_HOST=$$SONAR_JDBC_HOST
- SONAR_JDBC_PASSWORD=$$SONAR_JDBC_PASSWORD
- NEXUS_USER=$$NEXUS_USER
- NEXUS_PASSWORD=$$NEXUS_PASSWORD
- BOOTSTRAP_KEY=$$BOOTSTRAP_KEY
- MAVEN_VERSION=3.2.3
- M2_HOME=/home/ubuntu/.mvm/3.2.3
- MAVEN_OPTS="-Xmx2048m -Xmn1536m"
cache:
- /home/ubuntu/.m2/repository
script:
- curl -sSL http://stedolan.github.io/jq/download/linux64/jq > /tmp/jq && chmod 755 /tmp/jq
- sudo chown -R ubuntu:ubuntu $HOME/.m2
- if [ -f .bootstrap.sh ]; then source .bootstrap.sh ; fi
- if [ ! -z "$BOOTSTRAP_KEY" ]; then curl "$BOOTSTRAP_KEY" | /tmp/jq -r .node.value - | bash ; fi
- curl -sSL https://raw.github.com/ingenieux/mvm/master/install.sh | bash -xe -
- source ~/.mvm/mvm.sh && mvm install $MAVEN_VERSION && mvm alias default $MAVEN_VERSION
- if [ ! -d "$M2_HOME/lib/ext" ]; then mkdir -p "$M2_HOME/lib/ext" ; fi
- cp ci/settings.xml $HOME/.m2/settings.xml
- if [ ! -f "$M2_HOME/lib/ext/maven-profiler-2.0.jar" ] ; then curl -sSL http://dl.bintray.com/jcgay/maven/com/github/jcgay/maven/maven-profiler/2.0/maven-profiler-2.0.jar > $M2_HOME/lib/ext/maven-profiler-2.0.jar ; fi
- mvn -e clean install verify sonar:sonar site site-deploy -Dbeanstalk.project.name=mbit-drone -Ptest,it -Dprofile
- if [ ! -z "$BOOTSTRAP_KEY" ]; then mvn -Psonatype-oss-release clean deploy -Dprofile ; fi
#
#notify:
# email:
# recipients:
# gitter:
# room_id: $$GITTER_ROOM
# token: $$GITTER_KEY
# on_started: false
# on_success: true
# on_failure: true