mirror of
https://github.com/corda/corda.git
synced 2025-01-19 11:16:54 +00:00
Merge pull request #389 from ReadyTalk/mac-publishing
Add mac publishing + testing
This commit is contained in:
commit
610f3a62ae
10
.travis.yml
10
.travis.yml
@ -1,8 +1,9 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
|
cache: apt
|
||||||
|
|
||||||
before_install:
|
os:
|
||||||
- sudo apt-get update -qq
|
- linux
|
||||||
- sudo apt-get install -y libc6-dev-i386 mingw-w64 gcc-mingw-w64-x86-64 g++-mingw-w64-i686 binutils-mingw-w64-x86-64 lib32z1-dev zlib1g-dev g++-mingw-w64-x86-64
|
- osx
|
||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
@ -15,5 +16,8 @@ env:
|
|||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
exclude:
|
||||||
|
- os: osx
|
||||||
|
env: BUILD_STEP=""
|
||||||
|
|
||||||
script: ./test/ci.sh ${BUILD_STEP}
|
script: ./test/ci.sh ${BUILD_STEP}
|
||||||
|
25
test/ci.sh
25
test/ci.sh
@ -6,6 +6,23 @@ root_dir=$(pwd)
|
|||||||
|
|
||||||
flags="${@}"
|
flags="${@}"
|
||||||
|
|
||||||
|
is-mac() {
|
||||||
|
if [[ $(uname -s) == "Darwin" || ${TRAVIS_OS_NAME} == "osx" ]]; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
install-deps() {
|
||||||
|
if is-mac; then
|
||||||
|
echo "------ Installing dependencies for Mac ------"
|
||||||
|
else
|
||||||
|
echo "------ Installing dependencies for Linux ------"
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get install -y libc6-dev-i386 mingw-w64 gcc-mingw-w64-x86-64 g++-mingw-w64-i686 binutils-mingw-w64-x86-64 lib32z1-dev zlib1g-dev g++-mingw-w64-x86-64
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
echo '==============================================='
|
echo '==============================================='
|
||||||
if [ ! $(pwd) = ${root_dir} ]; then
|
if [ ! $(pwd) = ${root_dir} ]; then
|
||||||
@ -52,10 +69,12 @@ has_flag() {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
make_target=test
|
### START ###
|
||||||
|
|
||||||
|
install-deps
|
||||||
|
|
||||||
if [[ "${1}" == "PUBLISH" ]]; then
|
if [[ "${1}" == "PUBLISH" ]]; then
|
||||||
if [[ $(uname -s) == "Darwin" || ${TRAVIS_OS_NAME} == "osx" ]]; then
|
if is-mac; then
|
||||||
publish "macosx" "i386 x86_64"
|
publish "macosx" "i386 x86_64"
|
||||||
elif [[ $(uname -s) == "Linux" ]]; then
|
elif [[ $(uname -s) == "Linux" ]]; then
|
||||||
publish "linux windows" "i386 x86_64"
|
publish "linux windows" "i386 x86_64"
|
||||||
@ -65,6 +84,8 @@ else
|
|||||||
run_cmake -DCMAKE_BUILD_TYPE=Debug
|
run_cmake -DCMAKE_BUILD_TYPE=Debug
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
make_target=test
|
||||||
|
|
||||||
run make jdk-test
|
run make jdk-test
|
||||||
run make ${flags} ${make_target}
|
run make ${flags} ${make_target}
|
||||||
run make ${flags} mode=debug ${make_target}
|
run make ${flags} mode=debug ${make_target}
|
||||||
|
Loading…
Reference in New Issue
Block a user