blob: 10d8c32b2c7abb45a016e6a2c4e2904e6f4c55fc (
plain)
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
|
#!/bin/bash
#
# Script to run tests on Travis-CI.
#
# This file is generated by l2tdevtools update-dependencies.py, any dependency
# related changes should be made in dependencies.ini.
# Exit on error.
set -e;
if test -n "${CENTOS_VERSION}";
then
CONTAINER_NAME="centos${CENTOS_VERSION}";
CONTAINER_OPTIONS="-e LANG=en_US.UTF-8";
TEST_COMMAND="./travis/run_python3.sh";
# Note that exec options need to be defined before the container name.
docker exec ${CONTAINER_OPTIONS} ${CONTAINER_NAME} sh -c "cd pytsk && ${TEST_COMMAND}";
elif test -n "${FEDORA_VERSION}";
then
CONTAINER_NAME="fedora${FEDORA_VERSION}";
CONTAINER_OPTIONS="-e LANG=en_US.UTF-8";
TEST_COMMAND="./travis/run_python3.sh";
# Note that exec options need to be defined before the container name.
docker exec ${CONTAINER_OPTIONS} ${CONTAINER_NAME} sh -c "cd pytsk && ${TEST_COMMAND}";
elif test -n "${UBUNTU_VERSION}";
then
CONTAINER_NAME="ubuntu${UBUNTU_VERSION}";
CONTAINER_OPTIONS="-e LANG=en_US.UTF-8";
TEST_COMMAND="./travis/run_python3.sh";
# Note that exec options need to be defined before the container name.
docker exec ${CONTAINER_OPTIONS} ${CONTAINER_NAME} sh -c "cd pytsk && ${TEST_COMMAND}";
elif test ${TRAVIS_OS_NAME} = "linux";
then
python setup.py update
python setup.py build
PYTHONPATH=`ls -1d build/lib.*` python run_tests.py
python setup.py sdist
python setup.py bdist
mkdir -p ${PWD}/tmp/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/;
PYTHONPATH=${PWD}/tmp/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/ python setup.py install --prefix=${PWD}/tmp/;
elif test ${TRAVIS_OS_NAME} = "osx";
then
./travis/run_python3.sh;
fi
|