-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from mit-crpg/develop
Update to v0.2.0
- Loading branch information
Showing
467 changed files
with
231,839 additions
and
17,869 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
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,43 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.4" | ||
addons: | ||
apt: | ||
packages: | ||
- swig | ||
cache: | ||
directories: | ||
|
||
before_install: | ||
# ========== Point apt-get to C++11-compatible compiler ========== | ||
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | ||
- sudo apt-get update -qq | ||
# ============== Handle Python third-party packages ============== | ||
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then | ||
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; | ||
else | ||
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
fi | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy h5py pandas matplotlib pillow | ||
- source activate test-environment | ||
|
||
install: | ||
# ================= Get C++11-compatible compiler ================== | ||
- sudo apt-get install -qq gcc-4.8 g++-4.8 | ||
- sudo apt-get install swig | ||
- sudo rm /usr/bin/gcc | ||
- sudo rm /usr/bin/g++ | ||
- sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc | ||
- sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++ | ||
|
||
script: | ||
- cd tests | ||
- ./travis.sh | ||
- cd .. |
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,25 @@ | ||
cmake_minimum_required(VERSION 2.8) | ||
|
||
#=============================================================================== | ||
# Regression tests | ||
#=============================================================================== | ||
|
||
# This allows for dashboard configuration | ||
include(CTest) | ||
|
||
# Get a list of all the tests to run | ||
file(GLOB_RECURSE TESTS ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_*.py) | ||
|
||
# Loop through all the tests | ||
foreach(test ${TESTS}) | ||
|
||
# Get test information | ||
get_filename_component(TEST_NAME ${test} NAME) | ||
get_filename_component(TEST_PATH ${test} PATH) | ||
|
||
add_test(NAME ${TEST_NAME} | ||
WORKING_DIRECTORY ${TEST_PATH} | ||
COMMAND ${PYTHON_EXECUTABLE} ${TEST_NAME} | ||
) | ||
|
||
endforeach(test) |
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
Oops, something went wrong.