Commit 0666231c authored by nanahira's avatar nanahira

linux_test

parent 7a729590
...@@ -16,6 +16,8 @@ addons: ...@@ -16,6 +16,8 @@ addons:
- libirrlicht-dev - libirrlicht-dev
- libgl1-mesa-dev - libgl1-mesa-dev
- libglu-dev - libglu-dev
env:
- USE_IRRKLANG=1
before_install: before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update > /dev/null; brew update > /dev/null;
...@@ -25,12 +27,11 @@ before_install: ...@@ -25,12 +27,11 @@ before_install:
- curl --location --retry 5 http://www.lua.org/ftp/lua-5.3.4.tar.gz | tar zfx - - curl --location --retry 5 http://www.lua.org/ftp/lua-5.3.4.tar.gz | tar zfx -
- cd lua-5.3.4 - cd lua-5.3.4
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
make macosx test; sudo make macosx test install > /dev/null;
fi fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make linux test; sudo make linux test install > /dev/null;
fi fi
- sudo make install
- cd .. - cd ..
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
...@@ -51,6 +52,15 @@ before_install: ...@@ -51,6 +52,15 @@ before_install:
sudo cp -rf ../../../include /usr/local/include/irrlicht; sudo cp -rf ../../../include /usr/local/include/irrlicht;
cd ../../../../; cd ../../../../;
fi fi
- curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://www.ambiera.at/downloads/irrKlang-32bit-1.5.0.zip
- unzip -q irrKlang-32bit-1.5.0.zip
- move irrKlang-1.5.0 irrklang
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cp -rf irrklang/bin/macosx-gcc/*.dylib .;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cp -rf irrklang/bin/linux-gcc/*.so .;
fi
script: script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./premake5 gmake --cc=clang; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./premake5 gmake --cc=clang; fi
...@@ -78,10 +88,10 @@ script: ...@@ -78,10 +88,10 @@ script:
fi fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
zip -q -r ygopro-koishi-$TRAVIS_OS_NAME.zip ygopro.app; zip -q -r ygopro-koishi-$TRAVIS_OS_NAME.zip ygopro.app *.so;
fi fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
zip -q -r ygopro-koishi-$TRAVIS_OS_NAME.zip ygopro; zip -q -r ygopro-koishi-$TRAVIS_OS_NAME.zip ygopro *.dylib;
fi fi
deploy: deploy:
......
...@@ -35,6 +35,10 @@ project "ygopro" ...@@ -35,6 +35,10 @@ project "ygopro"
links { "event_pthreads", "GL", "dl", "pthread" } links { "event_pthreads", "GL", "dl", "pthread" }
configuration "linux" configuration "linux"
if USE_IRRKLANG then if USE_IRRKLANG then
linkoptions{ "-Wl,-rpath=./irrklang/bin/linux-gcc-64/" } linkoptions{ "-Wl,-rpath=./irrklang/bin/linux-gcc/" }
libdirs { "../irrklang/bin/linux-gcc-64" } libdirs { "../irrklang/bin/linux-gcc" }
end
configuration "macosx"
if USE_IRRKLANG then
libdirs { "../irrklang/bin/macosx-gcc" }
end end
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