-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sh
executable file
·49 lines (39 loc) · 1.01 KB
/
build.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
#!/bin/sh
export outputDirectory=${PWD}/build
clear
echo
echo Determining build directory structure
echo
if [ ! -d "$outputDirectory" ]; then
echo Creating Directory $outputDirectory
mkdir $outputDirectory
fi
echo -------------------------------------------------------------
echo Output Directory for Build: ${outputDirectory}
echo -------------------------------------------------------------
echo
echo Checking Build Dependencies
echo ..composer.phar
if [ ! -f ${PWD}/composer.phar ]; then
echo Fetching composer.phar
if [ -f ${PWD}/composer.lock ]; then
rm composer.lock
fi
curl -sS https://getcomposer.org/installer | php
else
echo Updating composer.phar inplace
php composer.phar self-update
fi
echo
echo --------------------Building PHP SDK-------------------------
echo
echo Running Composer to make sure all dependencies are installed
php composer.phar install
echo
echo
php buildPhar.php
echo
echo
echo Contents of Build output @: $outputDirectory
ls $outputDirectory
./vendor/bin/phpunit ./unitTests