Permalink
Browse files

fix travis ci build on os x. This is due to issues with restricted bi…

…naries.
  • Loading branch information...
tcaduser committed Apr 6, 2017
1 parent 2d112b0 commit ee8ea084f3d83e8fcbfa9843e27f86d911fb06d7
Showing with 60 additions and 2 deletions.
  1. +6 −1 .travis.yml
  2. +1 −1 scripts/mkindex.tcl
  3. +53 −0 scripts/setup_osx_anaconda.sh
View
@@ -13,13 +13,18 @@ before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install tcl8.5 tcl8.5-dev tcl-dev python2.7 python2.7-dev;
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
(curl -O https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh &&
bash Miniconda2-latest-MacOSX-x86_64.sh -b -p $HOME/anaconda
);
fi
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
(bash scripts/setup_ubuntu_12.04.sh && cd linux_x86_64_release && make -j2 && make test);
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
(bash scripts/setup_osx_10.10.sh && cd osx_release && make -j2 && make test);
(bash scripts/setup_osx_anaconda.sh && cd osx_release && make -j2 && make test);
fi
View
@@ -1 +1 @@
pkg_mkIndex -lazy .
pkg_mkIndex . libsymdifftcl.dylib
@@ -0,0 +1,53 @@
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
CMAKE="cmake"
CMAKE_CXX_FLAGS=""
CXX="/usr/bin/g++"
CC="/usr/bin/gcc"
TCL_ARCHIVE="/usr/lib/libtclstub8.5.a"
TCL_INCLUDE="/usr/include"
TCL_BIN="${HOME}/anaconda/bin/tclsh8.5"
PYTHON_ARCHIVE="${HOME}/anaconda/lib/libpython2.7.dylib"
PYTHON_INCLUDE="${HOME}/anaconda/include/python2.7"
PYTHON_BIN="${HOME}/anaconda/bin/python"
#-DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
for TYPE in debug release; do
NAME=osx_${TYPE}
mkdir ${NAME}
(cd $NAME; ${CMAKE} \
-DCMAKE_CXX_FLAGS:STRING="${CMAKE_CXX_FLAGS}" \
-DCMAKE_BUILD_TYPE=${TYPE} \
-DCMAKE_CXX_COMPILER=${CXX} \
-DCMAKE_C_COMPILER=${CC} \
-DPYTHON_INCLUDE=${PYTHON_INCLUDE} \
-DPYTHON_ARCHIVE=${PYTHON_ARCHIVE} \
-DPYTHON_BIN=${PYTHON_BIN} \
-DTCL_INCLUDE=${TCL_INCLUDE} \
-DTCL_ARCHIVE=${TCL_ARCHIVE} \
-DTCL_BIN=${TCL_BIN} \
..)
done
mkdir -p bin
cat << EOF > bin/symdiff
#!/bin/bash
set -e
progname="\$0"
curdir=\`dirname "\$progname"\`
export DYLD_LIBRARY_PATH=\${curdir}/../lib:${HOME}/anaconda/lib
export PYTHONPATH=\${curdir}/../lib
${PYTHON_BIN} \$*
EOF
chmod +x bin/symdiff
cat << EOF > bin/symdiff_tcl
#!/bin/bash
set -e
progname="\$0"
curdir=\`dirname "\$progname"\`
export DYLD_LIBRARY_PATH=\${curdir}/../lib
export TCLLIBPATH=\${curdir}/../lib
${TCL_BIN} \$*
EOF
chmod +x bin/symdiff_tcl

0 comments on commit ee8ea08

Please sign in to comment.