You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
function linux () {
|
|
|
|
|
cd ci || exit
|
|
|
|
|
if [ "${script}" == "clean" ]; then
|
|
|
|
|
sudo rm ../build -rf
|
|
|
|
|
return 0
|
|
|
|
|
fi
|
|
|
|
|
sudo docker run -it \
|
|
|
|
|
-e "CXX=$CXX" \
|
|
|
|
|
-e "CC=$CC" \
|
|
|
|
|
-e "make_command=$make_command" \
|
|
|
|
|
-e "cmake_command=$cmake_command" \
|
|
|
|
|
-e "distribution=$distribution" \
|
|
|
|
|
-v "$PWD/../:/jucipp" \
|
|
|
|
|
--entrypoint="/jucipp/ci/${script}.sh" \
|
|
|
|
|
"cppit/jucipp:$distribution"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#TODO Should run compile/install instructions for osx
|
|
|
|
|
function osx () {
|
|
|
|
|
true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function windows () {
|
|
|
|
|
cd "$(dirname "$0")" || exit
|
|
|
|
|
if [ "${script}" == "clean" ]; then
|
|
|
|
|
sudo rm ./build -rf
|
|
|
|
|
return 0
|
|
|
|
|
fi
|
|
|
|
|
sh -c "./ci/${script}.sh"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "" ]; then
|
|
|
|
|
TRAVIS_OS_NAME=windows
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
$TRAVIS_OS_NAME
|