summaryrefslogtreecommitdiffstats
path: root/run-tests.sh
blob: 31bbc69df2a8451eb26bf81e6764bb1bfa28ada5 (plain)
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
#!/bin/bash
echo "=================> STARTING TEST"
echo "=================> SETUP TEST ENVIRONMENT"
set -ev
mkdir /tmp/startx-docker-images;
cd /tmp/startx-docker-images;
git clone https://github.com/startxfr/docker-images.git .
echo " "
echo "=================> TESTING FLAVOUR 'latest' "
echo "========> TESTING 'latest' OS Container"
sudo docker-compose -f docker-compose-os.yml build
sudo docker-compose -f docker-compose-os.yml up -d
echo "========> TESTING 'latest' SERVICES Containers"
sudo docker-compose -f docker-compose-sv.yml build
sudo docker-compose -f docker-compose-sv.yml up -d
#echo "========> TESTING 'latest' APPLICATIONS Containers"
#sudo docker-compose -f docker-compose-app.yml build
#sudo docker-compose -f docker-compose-app.yml up -d
echo "=================> TEST FLAVOUR 'latest' ENDED SUCCESSFULLY"
echo " "
echo "=================> TESTING FLAVOUR 'fc23' "
git checkout fc23
echo "========> TESTING 'fc23' OS Container"
sudo docker-compose -f docker-compose-os.yml build
sudo docker-compose -f docker-compose-os.yml up -d
echo "========> TESTING 'fc23' SERVICES Containers"
sudo docker-compose -f docker-compose-sv.yml build
sudo docker-compose -f docker-compose-sv.yml up -d
#echo "========> TESTING 'fc23' APPLICATIONS Containers"
#sudo docker-compose -f docker-compose-app.yml build
#sudo docker-compose -f docker-compose-app.yml up -d
echo "=================> TEST FLAVOUR 'fc23' ENDED SUCCESSFULLY"
echo " "
echo "=================> TESTING FLAVOUR 'fc22' "
git checkout fc22
echo "========> TESTING 'fc22' OS Container"
sudo docker-compose -f docker-compose-os.yml build
sudo docker-compose -f docker-compose-os.yml up -d
echo "========> TESTING 'fc22' SERVICES Containers"
sudo docker-compose -f docker-compose-sv.yml build
sudo docker-compose -f docker-compose-sv.yml up -d
#echo "========> TESTING 'fc22' APPLICATIONS Containers"
#sudo docker-compose -f docker-compose-app.yml build
#sudo docker-compose -f docker-compose-app.yml up -d
echo "=================> TEST FLAVOUR 'fc22' ENDED SUCCESSFULLY"
echo " "
echo "=================> TEST ENDED SUCCESSFULLY"
exit 0;