Commit dae4f6b2 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #522 from kmod/travis_additions

Add a couple tests to the travis-ci configuration
parents 384d37ec dcff777b
...@@ -4,6 +4,15 @@ compiler: ...@@ -4,6 +4,15 @@ compiler:
- clang - clang
- gcc - gcc
env:
- TRAVIS_BUILD_TYPE=Debug
- TRAVIS_BUILD_TYPE=Release
matrix:
exclude:
- compiler: gcc
env: TRAVIS_BUILD_TYPE=Debug
# use travis-ci docker based infrastructure # use travis-ci docker based infrastructure
sudo: false sudo: false
...@@ -47,7 +56,7 @@ install: ...@@ -47,7 +56,7 @@ install:
- git config --global user.name "Your Name" - git config --global user.name "Your Name"
- mkdir ~/pyston-build && cd ~/pyston-build - mkdir ~/pyston-build && cd ~/pyston-build
- make -C $TRAVIS_BUILD_DIR llvm_up - make -C $TRAVIS_BUILD_DIR llvm_up
- cmake -GNinja -DTEST_THREADS=4 -DENABLE_EXTRA_TESTS=ON $TRAVIS_BUILD_DIR - bash $TRAVIS_BUILD_DIR/tools/configure_travis.sh
before_script: before_script:
- mysql -e 'create database mysqldb_test charset utf8;' - mysql -e 'create database mysqldb_test charset utf8;'
...@@ -56,6 +65,7 @@ script: ...@@ -56,6 +65,7 @@ script:
- ccache -z - ccache -z
- PYSTON_RUN_ARGS=G ninja -j4 pyston check-deps && ctest --output-on-failure - PYSTON_RUN_ARGS=G ninja -j4 pyston check-deps && ctest --output-on-failure
- ccache -s - ccache -s
- if [ -n "$(git status --porcelain --untracked=no)" ]; then echo "test suite left the source directory dirty"; git status; false; fi
os: os:
- linux - linux
......
...@@ -36,4 +36,6 @@ print ...@@ -36,4 +36,6 @@ print
print "Output: '%s'" % out print "Output: '%s'" % out
assert out == "<html><body>Hello World!</body></html>\n" assert out == "<html><body>Hello World!</body></html>\n"
subprocess.check_call(["rm", "-rf", os.path.join(PYXL_DIR, "build")])
print "PASSED" print "PASSED"
#!/bin/bash
set -exu
CMAKE_ARGS="-GNinja -DTEST_THREADS=4 $TRAVIS_BUILD_DIR -DCMAKE_BUILD_TYPE=${TRAVIS_BUILD_TYPE}"
if [ "${TRAVIS_BUILD_TYPE}" = "Release" ]; then
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_EXTRA_TESTS=ON"
fi
cmake ${CMAKE_ARGS}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment