-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
74 lines (69 loc) · 2.81 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: java
cache:
directories:
- "$HOME/.m2"
- "$HOME/.sonar/cache"
services:
- docker
install: skip
addons:
sonarcloud:
organization: "rajan123456"
token:
secure: "SjspoCYx/NpoZqhjWV7jS2pXP52BHrByrj4lTMsI7qD0xyrqLbKO3dtmt8R3CjGVOj4Umzoj1JcnWvI2/1WDqU8/a+fUe+mNkuUBDY/tk/zgeAElhOLaoD5jD373uQ0oAwE4ZwgD4zWyzjNjT9vhZ18oSa+B7yNj3xts7VvNUpv//zfUq8S8C3Po3mf9u/D2D6N8XNN1MW0jK6TPLh2ZY8zI7NIITPskx2aMjpxp93fh9LT68ItCcDLwuFoFsiR2OeWYlhPYOID7ndQ7iH5chx9jd3FQKcaqAh/7YvL+ziVNaz5dDABgvsZfSDGec3D3TjFXFvtos7FXopu+V4NWm5xer+LyDQ5mQdKsZdlhLwy52qgHMBWLZD8dbWLD3VQ35sRZe8BJk33ey99Dtt6CC20oATtk+BHu4XZOklYXIz1sG1syTf5Rgc3v5sq4hUAgzLU700Ln/RcZjkmnpZV9k7m6hHc5wKXNwdJKvCYZ5ZXsOufh3l2yc1gnw5ka3A9uyqMBHaPn4Wa4R6q7oOPUkO7SEsEvBMHUZs+EqS3SsnMaGOkmK6fb/kOdwEIdyd74Kec2NVUaLy62iML842Dway1zwPwkeKBuePXbf1wFdMjG35y+n2Ikr6+O43edXhA0VDd5sJUwRhsMyOalBpvG9akIYaQhlVXh4/L+Pqp237I="
script:
#Build Attendance Service
- cd attendance/
- sonar-scanner
- openssl aes-256-cbc -k "$ATTENDANCE_KEY" -in attendance.pem.enc -out attendance.pem -d -md sha256
- openssl aes-256-cbc -k "$ATTENDANCE_KEY" -in key.pem.enc -out key.pem -d -md sha256
- docker build -t rajagupt/attendance .
#Build Management Service
- cd ../management/
- mvn clean verify -B sonar:sonar -Dsonar.projectKey=rajan123456_uPresent_management
- docker build -t rajagupt/management .
#Build Reporting Service
- cd ../reporting/
- mvn clean verify -B sonar:sonar -Dsonar.projectKey=rajan123456_uPresent_reporting
- docker build -t rajagupt/reporting .
#Build Stream Processor
- cd ../streamProcessor/
- sonar-scanner
- docker build -t rajagupt/streamprocessor .
#Build Admin UI
- cd ../upresent-admin/
- sonar-scanner
- docker build -t rajagupt/upresent-admin .
#Build User Service
- cd ../user/
- mvn clean verify -B sonar:sonar -Dsonar.projectKey=rajan123456_uPresent_user
- docker build -t rajagupt/user .
#Build Video Processor Service
- cd ../videoprocessor/
- sonar-scanner
- docker build -t rajagupt/videoprocessor .
#Build Facenet
- cd ../facenet/
- sonar-scanner
- docker build -t rajagupt/facenet .
#Build training-watchdog
- cd ../training-watchdog/
- sonar-scanner
- docker build -t rajagupt/training-watchdog .
#Analyze uPresent
- cd ../uPresent/
- sonar-scanner
- cd ..
#Push Images to Docker Hub
- if [ $TRAVIS_BRANCH == "master" ] && [ $TRAVIS_EVENT_TYPE == "push" ]; then
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker push rajagupt/attendance;
docker push rajagupt/management;
docker push rajagupt/reporting;
docker push rajagupt/streamprocessor;
docker push rajagupt/upresent-admin;
docker push rajagupt/user;
docker push rajagupt/videoprocessor;
docker push rajagupt/facenet;
docker push rajagupt/training-watchdog;
fi