mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
Pass TRAVIS env var
This commit is contained in:
parent
f24491de84
commit
a08e79f426
@ -23,7 +23,7 @@ matrix:
|
|||||||
|
|
||||||
git:
|
git:
|
||||||
submodules: false
|
submodules: false
|
||||||
# Unshallow clone to obtain proper GIT_VERSION
|
# Unshallow clone to obtain proper GIT_VERSION
|
||||||
# There's no variable to disable depth, so we just have to set it to a huge number
|
# There's no variable to disable depth, so we just have to set it to a huge number
|
||||||
# https://docs.travis-ci.com/user/customizing-the-build/#Git-Clone-Depth
|
# https://docs.travis-ci.com/user/customizing-the-build/#Git-Clone-Depth
|
||||||
depth: 100000
|
depth: 100000
|
||||||
@ -31,7 +31,7 @@ git:
|
|||||||
before_install:
|
before_install:
|
||||||
- if [ "$CC" = "clang" ]; then
|
- if [ "$CC" = "clang" ]; then
|
||||||
export CXX="clang++-4.0" CC="clang-4.0";
|
export CXX="clang++-4.0" CC="clang-4.0";
|
||||||
fi;
|
fi;
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" = "g++" ]; then
|
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$CXX" = "g++" ]; then
|
||||||
export CXX="g++-5" CC="gcc-5" CXXFLAGS="-Wno-format-security";
|
export CXX="g++-5" CC="gcc-5" CXXFLAGS="-Wno-format-security";
|
||||||
fi;
|
fi;
|
||||||
@ -59,6 +59,7 @@ before_script:
|
|||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- export CMAKE_PREFIX_PATH=~/Qt/5.10.0/gcc_64/lib/cmake
|
- export CMAKE_PREFIX_PATH=~/Qt/5.10.0/gcc_64/lib/cmake
|
||||||
|
- export CXXFLAGS="$CXXFLAGS -DTRAVIS=true";
|
||||||
- if [ "$TRAVIS_PULL_REQUEST" = false ]; then
|
- if [ "$TRAVIS_PULL_REQUEST" = false ]; then
|
||||||
export CXXFLAGS="$CXXFLAGS -DBRANCH=$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH";
|
export CXXFLAGS="$CXXFLAGS -DBRANCH=$TRAVIS_REPO_SLUG/$TRAVIS_BRANCH";
|
||||||
else
|
else
|
||||||
@ -71,12 +72,12 @@ before_script:
|
|||||||
export LD_LIBRARY_PATH=~/Qt/5.10.0/gcc_64/lib;
|
export LD_LIBRARY_PATH=~/Qt/5.10.0/gcc_64/lib;
|
||||||
DESTDIR=appdir ninja install ; find appdir/ ;
|
DESTDIR=appdir ninja install ; find appdir/ ;
|
||||||
find ../bin ;
|
find ../bin ;
|
||||||
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" ;
|
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" ;
|
||||||
chmod a+x linuxdeployqt*.AppImage ;
|
chmod a+x linuxdeployqt*.AppImage ;
|
||||||
export PATH=~/Qt/5.10.0/gcc_64/bin/:${PATH} ;
|
export PATH=~/Qt/5.10.0/gcc_64/bin/:${PATH} ;
|
||||||
./linuxdeployqt*.AppImage --appimage-extract ;
|
./linuxdeployqt*.AppImage --appimage-extract ;
|
||||||
./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs ;
|
./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs ;
|
||||||
mkdir ./appdir/usr/plugins/xcbglintegrations/ ;
|
mkdir ./appdir/usr/plugins/xcbglintegrations/ ;
|
||||||
mkdir ./appdir/usr/plugins/imageformats/ ;
|
mkdir ./appdir/usr/plugins/imageformats/ ;
|
||||||
cp ~/Qt/5.10.0/gcc_64/lib/libQt5Svg.so.5 ./appdir/usr/lib/ ;
|
cp ~/Qt/5.10.0/gcc_64/lib/libQt5Svg.so.5 ./appdir/usr/lib/ ;
|
||||||
cp ~/Qt/5.10.0/gcc_64/plugins/xcbglintegrations/* ./appdir/usr/plugins/xcbglintegrations/ ;
|
cp ~/Qt/5.10.0/gcc_64/plugins/xcbglintegrations/* ./appdir/usr/plugins/xcbglintegrations/ ;
|
||||||
|
Loading…
Reference in New Issue
Block a user