-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildAll_CI.sh
executable file
·79 lines (65 loc) · 2.53 KB
/
buildAll_CI.sh
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
#!/bin/sh
echo -e "\nBuilding Supersede Service Composition Enactor ...\n"
cd Enactment/components/enactor/eu.supersede.dynadapt.serviceCompositionEnactor/ && ./installDependencies.sh && mvn clean install && cp target/ServiceCompositionEnactor-0.0.1-SNAPSHOT.jar ../eu.supersede.dynadapt.enactor.EnactorFactory/lib/
if [ $? -eq 0 ]
then
echo "Supersede Service Composition Enactor compiled"
else
echo "There are problems compiling Supersede Service Composition Enactor" >&2
exit 1
fi
echo -e "\nBuilding Supersede YAFMT plugins...\n"
cd ../../../../Maven/cz.zcu.yafmt/releng/cz.zcu.yafmt.configuration/ && ./installPom.sh
cd ../../ && mvn clean install
if [ $? -eq 0 ]
then
echo "YAFMT compiled"
else
echo "There are problems compiling YAFMT" >&2
exit 1
fi
echo -e "\nBuilding Supersede dynamic adaptation plugins...\n"
cd ../../Maven/eu.supersede.dynadapt/releng/eu.supersede.dynadapt.configuration/ && ./installPom.sh
cd ../../ && mvn clean install
if [ $? -eq 0 ]
then
echo "Supersede dynamic adaptation plugins compiled"
else
echo "There are problems compiling Supersede dynamic adaptation plugins" >&2
exit 1
fi
echo -e "\nBuilding Supersede dynamic adaptation adapter...\n"
cd ../../Enactment/services/eu.supersede.dynadapt.adapter.service/ && mkdir -p logs && mvn eclipse:eclipse && mvn clean package
if [ $? -eq 0 ]
then
echo "Supersede dynamic adaptation adapter compiled"
else
echo "There are problems compiling Supersede dynamic adaptation adapter" >&2
exit 1
fi
echo -e "\nBuilding Supersede dynamic adaptation optimizer...\n"
cd ../../../DM/components/eu.supersede.dynadapt.dm.optimizer/ && ./installGPLibDependency.sh && mvn clean package -Dmaven.test.skip=true
if [ $? -eq 0 ]
then
echo "Supersede dynamic adaptation optimizer compiled"
else
echo "There are problems compiling Supersede dynamic adaptation optimizer" >&2
exit 1
fi
echo -e "\nBuilding Supersede dynamic adaptation model repository...\n"
cd ../../../Enactment/components/adapter/model/eu.supersede.dynadapt.modelrepository.manager && mvn clean install
if [ $? -eq 0 ]
then
echo "Supersede dynamic adaptation model repository manager compiled"
else
echo "There are problems compiling Supersede dynamic adaptation model repository manager" >&2
exit 1
fi
cd ../eu.supersede.dynadapt.modelrepository.manager.service && gradle build
if [ $? -eq 0 ]
then
echo "Supersede dynamic adaptation model repository manager service compiled"
else
echo "There are problems compiling Supersede dynamic adaptation model repository manager service" >&2
exit 1
fi