-
Notifications
You must be signed in to change notification settings - Fork 1
/
shippable.yml
47 lines (43 loc) · 1.38 KB
/
shippable.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
language: java
jdk:
- oraclejdk8
build:
ci:
- echo 'CI is running'
# create folder for test and coverage results
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
# run tests and jacoco coverage in separate profiles
- ./gradlew clean check "-Dspring.profiles.active=test,h2_db"
# copy results
- cp -r build/test-results/* shippable/testresults/
- cp -r build/QA/static_analysis/jacoco/* shippable/codecoverage/
# clean and build
- ./gradlew clean build "-Dspring.profiles.active=prod,h2"
post_ci:
# DockerHub; profiles already defined in Dockerfile
- ./gradlew buildDocker
- docker push inspectit/marketplace:$BRANCH.$BUILD_NUMBER
# need to install python dev for later EBS push
- apt-get update
- apt-get install python-dev
# need to upgrade botocore due to a problem with ebs
- pip install --upgrade botocore
- pip install setuptools==34.0.1
notifications:
email:
recipients:
- patrice.bouillet@novatec-gmbh.de
- nikita.kolytschew@novatec-gmbh.de
integrations:
deploy:
- integrationName: "aws-eb-docker"
type: aws
application_name: "inspectIT Marketplace"
env_name: "Marketplace-Environment"
region: "eu-west-1"
image_name: "inspectit/marketplace"
image_tag: "$BRANCH.$BUILD_NUMBER"
hub:
- integrationName: "dockerhub"
type: docker