2019-12-04 12:06:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This bash script builds everyting on an TravisCI Mac OSx worker
|
|
|
|
|
2019-12-04 13:26:26 +00:00
|
|
|
# See:
|
|
|
|
# https://docs.travis-ci.com/user/installing-dependencies/#using-homebrew-without-addon-on-older-macos-images
|
|
|
|
# For details on obtaining/using the correct ruby version for homebrew.
|
|
|
|
|
2019-12-05 08:42:24 +00:00
|
|
|
echo "-------------------------------------------------"
|
|
|
|
echo $PATH
|
|
|
|
echo $LDFLAGS
|
|
|
|
echo $CPPFLAGS
|
|
|
|
which clang
|
|
|
|
echo "-------------------------------------------------"
|
2019-12-04 12:06:17 +00:00
|
|
|
brew tap pdf2htmlEX/homebrew-brewTap
|
2019-12-05 08:42:24 +00:00
|
|
|
echo "-------------------------------------------------"
|
|
|
|
echo $PATH
|
|
|
|
echo $LDFLAGS
|
|
|
|
echo $CPPFLAGS
|
|
|
|
which clang
|
|
|
|
echo "-------------------------------------------------"
|
2019-12-04 12:06:17 +00:00
|
|
|
brew update
|
2019-12-05 08:42:24 +00:00
|
|
|
echo "-------------------------------------------------"
|
|
|
|
echo $PATH
|
|
|
|
echo $LDFLAGS
|
|
|
|
echo $CPPFLAGS
|
|
|
|
which clang
|
|
|
|
echo "-------------------------------------------------"
|
2019-12-06 19:54:43 +00:00
|
|
|
brew install llvm
|
2019-12-06 14:50:02 +00:00
|
|
|
brew install -v python@2
|
2019-12-06 17:12:59 +00:00
|
|
|
brew install jq
|
2019-12-06 14:50:02 +00:00
|
|
|
echo "-------------------------------------------------"
|
|
|
|
echo $PATH
|
|
|
|
echo $LDFLAGS
|
|
|
|
echo $CPPFLAGS
|
|
|
|
which clang
|
2019-12-06 19:54:43 +00:00
|
|
|
export llvmVersion=$(brew info --json=v1 llvm | jq '.[].installed[].version' | tr -d '"')
|
|
|
|
echo $llvmVersion
|
2019-12-06 17:32:16 +00:00
|
|
|
export python2Version=$(brew info --json=v1 python@2 | jq '.[].installed[].version' | tr -d '"')
|
2019-12-06 17:17:47 +00:00
|
|
|
echo $python2Version
|
2019-12-06 14:50:02 +00:00
|
|
|
echo "-------------------------------------------------"
|
2019-12-06 19:54:43 +00:00
|
|
|
brew info llvm
|
|
|
|
brew switch llvm $llvmVersion
|
2019-12-06 17:12:59 +00:00
|
|
|
brew info python@2
|
2019-12-06 17:39:22 +00:00
|
|
|
brew switch python@2 $python2Version
|
2019-12-06 14:50:02 +00:00
|
|
|
echo "-------------------------------------------------"
|
|
|
|
echo $PATH
|
|
|
|
echo $LDFLAGS
|
|
|
|
echo $CPPFLAGS
|
|
|
|
which clang
|
2019-12-06 18:36:39 +00:00
|
|
|
ls -la $(which clang)
|
2019-12-06 17:17:47 +00:00
|
|
|
which python
|
2019-12-06 17:52:05 +00:00
|
|
|
ls -la $(which python)
|
2019-12-06 17:17:47 +00:00
|
|
|
python --version
|
2019-12-06 14:50:02 +00:00
|
|
|
echo "-------------------------------------------------"
|
2019-12-06 18:36:39 +00:00
|
|
|
brew install -v pdf2htmlex-new
|
2019-12-05 08:42:24 +00:00
|
|
|
echo "-------------------------------------------------"
|
|
|
|
echo $PATH
|
|
|
|
echo $LDFLAGS
|
|
|
|
echo $CPPFLAGS
|
|
|
|
which clang
|
2019-12-06 19:15:50 +00:00
|
|
|
ls -la $(which clang)
|
|
|
|
which python
|
|
|
|
ls -la $(which python)
|
|
|
|
python --version
|
|
|
|
which pdf2htmlEX
|
|
|
|
ls -la $(which pdf2htmlEX)
|
|
|
|
pdf2htmlEX --version
|
2019-12-05 08:42:24 +00:00
|
|
|
echo "-------------------------------------------------"
|