Update Jenkinsfile and compile.sh
This commit is contained in:
parent
e101a01cd9
commit
6e40e20129
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -12,6 +12,11 @@ pipeline {
|
||||
args '-v $HOME:/var/maven'
|
||||
reuseNode true
|
||||
}
|
||||
docker {
|
||||
image 'dockcross/linux-x64'
|
||||
args '-v $JAVA_HOME:/java'
|
||||
reuseNode true
|
||||
}
|
||||
}
|
||||
triggers {
|
||||
pollSCM "* * * * *"
|
||||
|
@ -7,11 +7,15 @@ source ./jenkins/scripts/setup_variables.sh
|
||||
# ====== Setup workspace
|
||||
bash ./jenkins/scripts/setup_workspace.sh
|
||||
|
||||
|
||||
docker run --rm dockcross/linux-x64 > ./dockcross-linux-x64
|
||||
chmod +x ./dockcross-linux-x64
|
||||
|
||||
# ====== Build Td
|
||||
# Prepare build
|
||||
cd $TD_BUILD_DIR
|
||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} -DTD_SKIP_BENCHMARK=ON -DTD_SKIP_TEST=OFF -DTD_SKIP_TG_CLI=ON ${TD_SRC_DIR}
|
||||
./dockcross-linux-x64 --args "-v $JAVA_HOME:/java" cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} -DTD_SKIP_BENCHMARK=ON -DTD_SKIP_TEST=OFF -DTD_SKIP_TG_CLI=ON ${TD_SRC_DIR}
|
||||
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=${TD_BIN_DIR} -DTD_SKIP_BENCHMARK=ON -DTD_SKIP_TEST=OFF -DTD_SKIP_TG_CLI=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ ${TD_SRC_DIR}
|
||||
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user