summaryrefslogtreecommitdiff
path: root/CI/travis/inside_docker.sh
blob: 7aa95226d5001f9f97acebcb13880d3d38e1f157 (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
#!/bin/sh -e

LIBNAME="$1"
OS_TYPE="$2"

export INSIDE_DOCKER="1"
export TRAVIS_BUILD_DIR="/$LIBNAME"

cd /$LIBNAME

if [ -d "/$LIBNAME/CI" ] ; then
	CI="/$LIBNAME/CI"
elif [ -d "/$LIBNAME/ci" ] ; then
	CI="/$LIBNAME/ci"
else
	echo "No CI/ci directory present"
	exit 1
fi

$CI/travis/before_install_linux "$OS_TYPE"

$CI/travis/make_linux "$OS_TYPE"

# need to find this out inside the container
. $CI/travis/lib.sh
echo "$(get_ldist)" > /${LIBNAME}/build/.LDIST