-
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
·62 lines (46 loc) · 1.05 KB
/
Copy pathtest-in-docker.sh
File metadata and controls
executable file
·62 lines (46 loc) · 1.05 KB
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
#!/bin/bash
iris_start () {
iris start iris
# Merge cpf file
iris merge iris merge.cpf
}
iris_stop () {
echo "Stopping IRIS"
if ! iris stop iris quietly; then
echo "Warning: IRIS did not stop cleanly; container cleanup will terminate it." >&2
fi
return 0
}
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
python3 ../scripts/verify_installed_objectscript.py
exit_on_error
# Unit and local IRIS tests. Remote API tests run in their dedicated CI job.
cd ..
python3 scripts/run_pytest.py src/tests/unit src/tests/e2e/local
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