diff options
-rw-r--r-- | .travis.yml | 5 | ||||
-rwxr-xr-x | check.py | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 3b84100ab..05213c3d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,10 +14,11 @@ matrix: packages: ['cmake', 'clang-3.7'] compiler: clang env: COMPILER_VERSION=3.7 -# TODO: add before_script: update.py +#before_script: +# - python update.py script: - export CC="${CC}-${COMPILER_VERSION}" - export CXX="${CXX}-${COMPILER_VERSION}" - cmake . - make -j2 - # TODO: add testing. + - python check.py @@ -275,7 +275,7 @@ if unexpected_result_count: print '\n[ checking example testcases... ]\n' -subprocess.check_call(['g++', '-std=c++11', os.path.join('test', 'example', 'find_div0s.cpp'), '-Isrc', '-g', '-lsupport', '-Llib/.']) +subprocess.check_call([os.environ.get('CXX') or 'g++', '-std=c++11', os.path.join('test', 'example', 'find_div0s.cpp'), '-Isrc', '-g', '-lsupport', '-Llib/.']) actual = subprocess.Popen(['./a.out'], stdout=subprocess.PIPE).communicate()[0] expected = open(os.path.join('test', 'example', 'find_div0s.txt')).read() if actual != expected: |