mirror of
https://github.com/encounter/cpp3ds.git
synced 2026-03-30 11:04:22 -07:00
Fix some relative path stuff for travis build
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@ before_install:
|
||||
- sudo apt-get -qq update
|
||||
- sudo apt-get -qq install libgtest-dev g++-4.8
|
||||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
|
||||
- git clone https://github.com/cpp3ds/universal-tween-engine-cpp.git tween
|
||||
- "cd tween && make test ; cd -"
|
||||
- git clone https://github.com/cpp3ds/universal-tween-engine-cpp.git ../tween-engine
|
||||
- "cd ../tween-engine && make test ; cd -"
|
||||
- "cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -"
|
||||
script: "make test && cd test && ./run.sh"
|
||||
notifications:
|
||||
|
||||
@@ -7,7 +7,7 @@ TEST_CXX = g++
|
||||
TEST_AR = ar
|
||||
TEST_CXXFLAGS = -g -Wall -pedantic -std=c++11 -fno-rtti -fno-exceptions -DTESTING
|
||||
|
||||
INCLUDES = -Iinclude/
|
||||
INCLUDES = -Iinclude/ -I../tween-engine/include
|
||||
SOURCES = $(wildcard src/*.cpp) $(wildcard src/*/*.cpp) $(wildcard src/*.S)
|
||||
OBJECTS = $(SOURCES:src/%.cpp=build/%.o) $(SOURCES:src/%.S=build/%.o)
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
echo "Compiling unit tests..."
|
||||
g++ main.cpp -o test -L../lib -I../include -L../tween/lib -I../tween/include -std=c++11 -lgtest -lpthread -lcpp3ds -ltween -DTESTING
|
||||
g++ main.cpp -o test -L../lib -I../include -L../../tween-engine/lib -I../../tween-engine/include -std=c++11 -lgtest -lpthread -lcpp3ds -ltween -DTESTING
|
||||
echo "Running unit tests..."
|
||||
./test -v
|
||||
result=$?
|
||||
|
||||
Reference in New Issue
Block a user