-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Build and run tests in `install.sh`. - Implement Python version detection on Mac OS X. - Set up Travis CI.
- Loading branch information
Showing
9 changed files
with
100 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
# Output directories | ||
bin/ | ||
build/ | ||
|
||
# Binaries | ||
*.bin | ||
|
||
# Vim | ||
*[._]s[a-w][a-z] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Language must be "generic" to get minimal Trusty image. | ||
language: generic | ||
|
||
env: | ||
- TEST_PY=py2 | ||
- TEST_PY=py3 | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
# Need Trusty for version of GCC that supports C++11. | ||
dist: trusty | ||
sudo: required | ||
addons: | ||
apt: | ||
packages: | ||
- cmake | ||
- libboost-dev | ||
- libboost-program-options-dev | ||
- python-dev | ||
- python3-dev | ||
|
||
osx_image: xcode7 | ||
|
||
install: ./.travis/install.sh | ||
|
||
script: ./.travis/script.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
if [[ "${TRAVIS_OS_NAME}" == 'osx' ]]; then | ||
brew update | ||
# Skip updating Boost, since doing so takes a long time and we'd like to | ||
# know about compatibility breakage anyway. | ||
brew install cmake | ||
case "${TEST_PY}" in | ||
py2) brew outdated python || brew upgrade python;; | ||
py3) brew install python3;; | ||
esac | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
case "${TEST_PY}" in | ||
py2) PY3=OFF ./install.sh;; | ||
py3) PY3=ON ./install.sh;; | ||
*) echo "Unknown TEST_PY: ${TEST_PY}"; false;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters