run_tests.sh 627 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

CI_PROJECT_DIR_WIN=$(cygpath -a -w ${CI_PROJECT_DIR})

# Change working directory to the directory the script is in
# http://stackoverflow.com/a/246128
SCRIPT_DIR="${CI_PROJECT_DIR}/BuildServer/Windows"

# This is the directory that will contain the temporary installation
TARGET_DIR="${CI_PROJECT_DIR_WIN}\\BuildServer\\Windows\\Build"

cd "${SCRIPT_DIR}"

14
15
ls

16
17
18
19
echo "Running tests"
cmd /V:ON /E:ON /C "run_tests.bat" "${TARGET_DIR}" "${CI_PROJECT_DIR_WIN}"

# Exit now if unable to run tests
Remi Perenon's avatar
Remi Perenon committed
20
status=$?
Remi Perenon's avatar
Remi Perenon committed
21
22
if [ $status -ne 0 ]; then
	echo "Failed to extract python"
23
24
25
	echo "One or several unit tests failed"
fi

Remi Perenon's avatar
Remi Perenon committed
26
exit 0