Skip to content

Commit

Permalink
Added install and test scripts, should finish up travis-ci setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dummerbd committed Sep 21, 2016
1 parent 3114d8e commit fa1d209
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ before_install:
- pip install Cython
- pip install -r ./requirements.txt
install:
- (cd modules/core && python setup.py build_ext --inplace && python setup.py install)
- (cd modules/cymunk && python setup.py build_ext --inplace && python setup.py install)
- (cd modules/particles && python setup.py build_ext --inplace && python setup.py install)
- (cd modules/projectiles && python setup.py build_ext --inplace && python setup.py install)
- scripts/install_all.sh
script:
- scripts/test_all.sh
16 changes: 16 additions & 0 deletions scripts/install_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

BUILD_CMD="python setup.py build_ext --inplace --force"
INSTALL_CMD="python setup.py install"

function build_and_install {
(cd $1 && $BUILD_CMD && $INSTALL_CMD)
if [ $? -ne 0 ]; then
exit $?
fi
}

build_and_install modules/core
build_and_install modules/cymunk
build_and_install modules/particles
build_and_install modules/projectiles
3 changes: 3 additions & 0 deletions scripts/test_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "No tests yet..."

0 comments on commit fa1d209

Please sign in to comment.