mirror of https://gitlab.com/cppit/libclangmm
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.
36 lines
962 B
36 lines
962 B
#!/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/../:/libclangmm" \ |
|
--entrypoint="/libclangmm/ci/${script}.sh" \ |
|
"cppit/jucipp:$distribution" |
|
} |
|
|
|
function windows () { |
|
export PATH="/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" |
|
bf=$(cygpath ${APPVEYOR_BUILD_FOLDER}) |
|
cd "$bf" || (echo "Error changing directory"; return 1) |
|
if [ "${script}" == "clean" ]; then |
|
sudo rm "./build" -rf |
|
return 0 |
|
fi |
|
sh -c "${bf}/ci/${script}.sh" |
|
} |
|
|
|
|
|
if [ "$TRAVIS_OS_NAME" == "" ]; then |
|
TRAVIS_OS_NAME=windows |
|
fi |
|
|
|
$TRAVIS_OS_NAME
|
|
|