forked from matrix-org/matrix-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·36 lines (28 loc) · 937 Bytes
/
test.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
#!/bin/sh
set -e
set -x
pod install
#xcodebuild -workspace MatrixSDK.xcworkspace/ -scheme MatrixSDK -sdk iphonesimulator analyze
git -C synapse pull || git clone https://github.com/matrix-org/synapse
[ -d venv ] || virtualenv venv
. venv/bin/activate
#pip install --process-dependency-links synapse/
#python synapse/synapse/python_dependencies.py | xargs -n1 pip install
pip install --upgrade pip
pip install --upgrade --process-dependency-links https://github.com/matrix-org/synapse/tarball/master
basedir=`pwd`
function cleanup {
echo `date "+%F %T"` - clean up
cd $basedir
cd synapse/demo
./stop.sh
}
trap cleanup EXIT
cd synapse/demo
./stop.sh || true
./clean.sh
./start.sh --no-rate-limit
echo `date "+%F %T"` - start xcode
cd ../..
xcodebuild -workspace MatrixSDK.xcworkspace/ -scheme MatrixSDK -sdk iphonesimulator -destination 'name=iPhone 5s' test 2>&1 | ocunit2junit
echo `date "+%F %T"` - xcode ended