Fix CI scripts.

This commit is contained in:
Syoyo Fujita
2016-04-18 17:59:17 +09:00
parent 1e663342bf
commit 90d33c33c0
3 changed files with 8 additions and 14 deletions

View File

@@ -42,15 +42,8 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade; fi
- if [ -n "$REPORT_COVERAGE" ]; then pip install --user cpp-coveralls; fi - if [ -n "$REPORT_COVERAGE" ]; then pip install --user cpp-coveralls; fi
script: script:
- mkdir build && cd build - cd tests
- export CC="${CC}-${COMPILER_VERSION}" - make check
- export CXX="${CXX}-${COMPILER_VERSION}"
- ${CC} -v
- cmake --version
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DTINYOBJLOADER_BUILD_TEST_LOADER=On -G Ninja
..
- ninja
- ./test_loader ../cornell_box.obj
- if [ -n "$REPORT_COVERAGE" ]; then coveralls -b . -r .. -e examples -e tools -e - if [ -n "$REPORT_COVERAGE" ]; then coveralls -b . -r .. -e examples -e tools -e
jni -e python -e images -E ".*CompilerId.*" -E ".*feature_tests.*" ; fi jni -e python -e images -E ".*CompilerId.*" -E ".*feature_tests.*" ; fi
- cd .. - cd ..

View File

@@ -1,7 +1,10 @@
.PHONY: clean .PHONY: clean
CXX ?= g++
CXXFLAGS ?= -g -O2
tester: tester.cc tester: tester.cc
g++ -g -O0 -o tester tester.cc $(CXX) $(CXXFLAGS) -o tester tester.cc
all: tester all: tester

View File

@@ -6,7 +6,5 @@ build:
name: build name: build
code: | code: |
git clone https://github.com/syoyo/orebuildenv.git git clone https://github.com/syoyo/orebuildenv.git
chmod +x ./orebuildenv/build/linux/bin/premake4 cd tests
./orebuildenv/build/linux/bin/premake4 gmake make check
make
./test_tinyobjloader