forked from SimplQ/simplQ-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (41 loc) · 1.75 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
language: java
jdk:
- oraclejdk11
script:
- cd simplq
# the following command line builds the project, runs the tests with coverage and then execute the SonarCloud analysis
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.projectKey=SimplQ_simplQ-backend --no-transfer-progress
- cd ..
- zip -r latest *
- mkdir -p dpl_cd_upload
- mv latest.zip dpl_cd_upload/latest.zip
- echo completed packaging maven jar
cache:
directories:
- $HOME/.m2
deploy:
- provider: s3
edge: true
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
local_dir: dpl_cd_upload
on: &2
repo: SimplQ/simplQ-backend
bucket: travis-ci-simplq
region: ap-southeast-1
- provider: codedeploy
edge: true
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
bucket: travis-ci-simplq
key: latest.zip
bundle_type: zip
application: Travis-SimplQ-CodeDeploy
deployment_group: Travis-SimplQ-CodeDeploy-Deployment-Group
region: ap-southeast-1
on: *2
addons:
sonarcloud:
organization: "simplq"
token:
secure: "BGWBr+ilSphwkx95mrG1GKXUtwg5q6ZYbYREQDEd3RtQsd+xH7EDblE8iuwJll8n7sWA7d8hV/nZoq28iM8mHna2Zn51iBQfKaK+vMmvAqYiPCls7H90uFCVZe2A3T4uo5vtJgpCSunSqigKql7Zs7TTeHDq9GI8QFS2Y46t7bnQMCymh6dVqqkc2KXO+AWaKcR0oxxO3rhCCtBb9FXSFZRgZF647HHm4tU1Uh2YIubkl2HOGdbKU3KjDy+PRF9QfpbnSifRjftjoDQQtDJRi+8Fd2qRq2Yf1qHcvo+Z04eyBlIs61xjNpeZvcJxFdVcH/aTHquJ0Bv6igQqbS51H4hwiG7CmMmmo3hc6ZRrvM4NcHYMmaVh0a7E+dtum63MnB5b1Qj3J/puNw+Cp8Lga02BR7qKyOq7FgB/c/qtCrtiFiQ8JLGQOZgLxJjgUiYtBzIDapYgng2mmIBE6sI4M29D0ROMVdrWeDQoC6yj7Yp0wvLhawtEh78XxZjBQ+yPzXSqVwQ+RfhSHF7KzOvrfoH/ISpR1aSQMgm4hRWByXsLuOi3nTe/CD0tI4BR7vE9Te9uYL8xZiAPau8q6cra5kJsdh2cweBSx/tDXHxQeQMWXWG5tYXPg9CSIpRBPG6bMaTPmfEKN1JN/ghzUuAioHHwKJeOu34hYsMg+b+SUSc="