-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.bak.yml
120 lines (104 loc) · 2.96 KB
/
.travis.bak.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
language: java
git:
depth: 3
services:
- docker
jdk:
- openjdk8
cache:
directories:
- '$HOME/.m2/repository'
branches:
only:
- feat-zack
- master
jobs:
include:
- stage: build-javase
script:
- chmod +x $PWD/export.var.sh
- bash $PWD/export.var.sh
- source $PWD/export.var.sh
- echo $commit_id
- echo $image_tag
- cd $project_home/java/javase/
- mvn clean package -DskipTests=true
- stage: build-spring
script:
- chmod +x $PWD/export.var.sh
- bash $PWD/export.var.sh
- source $PWD/export.var.sh
- echo $commit_id
- echo $image_tag
- cd $project_home/java/javaee/spring/spring
- mvn clean package -DskipTests=true
- stage: build-spring
script:
- chmod +x $PWD/export.var.sh
- bash $PWD/export.var.sh
- source $PWD/export.var.sh
- echo $commit_id
- echo $image_tag
- cd $project_home/java/javaee/spring/integration
- mvn clean package -DskipTests=true
- stage: build-spring-mvc
script:
- chmod +x $PWD/export.var.sh
- bash $PWD/export.var.sh
- source $PWD/export.var.sh
- echo $commit_id
- echo $image_tag
- cd $project_home/java/javaee/spring-mvc
- mvn clean package -DskipTests=true
- stage: build-spring-boot
script:
# - env
- commit_id=${TRAVIS_COMMIT:0:7}
- image_tag=`date +%Y%m%d`.$commit_id
- echo $commit_id
- echo $image_tag
- cd $project_home/java/javaee/spring-boot/integration
- mvn clean package -DskipTests=true
- stage: build-spring-cloud
script:
- chmod +x $PWD/export.var.sh
- bash $PWD/export.var.sh
- source $PWD/export.var.sh
- echo $commit_id
- echo $image_tag
- cd $project_home/java/javaee/spring-cloud/springcloud
- mvn clean package -DskipTests=true
- stage: build-spring-cloud-relevant
script:
- commit_id=${TRAVIS_COMMIT:0:7}
- image_tag=`date +%Y%m%d`.$commit_id
- echo $commit_id
- echo $image_tag
- cd $project_home/java/javaee/spring-cloud/relevant
- mvn clean package -DskipTests=true
- stage: build-job
script:
- chmod +x $PWD/export.var.sh
- bash $PWD/export.var.sh
- source $PWD/export.var.sh
- echo $commit_id
- echo $image_tag
- cd $project_home/job/job
- mvn clean package -DskipTests=true
- stage: build-mq
script:
- chmod +x $PWD/export.var.sh
- bash $PWD/export.var.sh
- source $PWD/export.var.sh
- echo $commit_id
- echo $image_tag
- cd $project_home/mq
- mvn clean package -DskipTests=true
notifications:
email: $NOTIFICATION_EMAIL
env:
project_home: $PWD
commit_id: 000
image_tag: 000
global:
- GH_REF=git@github.com:Alice52/tutorials-sample.git