generated from intersystems-community/iris-interoperability-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtest-in-docker.sh
More file actions
executable file
·56 lines (41 loc) · 785 Bytes
/
test-in-docker.sh
File metadata and controls
executable file
·56 lines (41 loc) · 785 Bytes
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
#!/bin/bash
iris_start () {
iris start iris
# Merge cpf file
iris merge iris merge.cpf
}
iris_stop () {
echo "Stopping IRIS"
iris stop iris quietly
}
exit_on_error () {
exit=$?;
if [ $exit -ne 0 ]; then
iris_stop
exit $exit
fi
}
iris_start
cd src
# print iris version
echo "IRIS version:"
python3 -c "import iris; print(iris.system.Version.GetVersion())"
# setup the environment
python3 -m iop --init
exit_on_error
# Unit tests
cd ..
python3 -m pytest
exit_on_error
# Integration tests
cd src
python3 -m iop --migrate ../demo/python/reddit/settings.py
exit_on_error
python3 -m iop --default PEX.Production
exit_on_error
python3 -m iop --start PEX.Production --detach
exit_on_error
python3 -m iop --log 10
python3 -m iop -S
exit_on_error
iris_stop