mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-08-31 08:12:19 +00:00
travis: fix osx archive name, remove unneeded envvars on osx, try to fix windows python
This commit is contained in:
parent
ebbe22b09a
commit
db30358d06
@ -34,7 +34,7 @@ matrix:
|
|||||||
dist: xenial
|
dist: xenial
|
||||||
- os: osx
|
- os: osx
|
||||||
- os: windows
|
- os: windows
|
||||||
python: "3.6"
|
env: PYTHONENCODING=UTF-8
|
||||||
before_script:
|
before_script:
|
||||||
- sh scripts/travis_common_deps.sh
|
- sh scripts/travis_common_deps.sh
|
||||||
- sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
|
- sh scripts/travis_${TRAVIS_OS_NAME}_deps.sh
|
||||||
@ -48,5 +48,5 @@ after_script:
|
|||||||
- cd ${TRAVIS_BUILD_DIR}
|
- cd ${TRAVIS_BUILD_DIR}
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ccache --show-stats; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ccache --show-stats; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh scripts/travis-deploy.sh newengine Xash3DFWGS-i386.AppImage xash3d-mingw.7z; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh scripts/travis-deploy.sh newengine Xash3DFWGS-i386.AppImage xash3d-mingw.7z; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sh scripts/travis-deploy.sh newengine xash3d-osx.7z; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sh scripts/travis-deploy.sh newengine xash3d-osx.tar.bz2; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then sh scripts/travis-deploy.sh newengine xash3d-vc.7z; fi
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then sh scripts/travis-deploy.sh newengine xash3d-vc.7z; fi
|
||||||
|
@ -5,10 +5,6 @@
|
|||||||
# Build engine
|
# Build engine
|
||||||
|
|
||||||
cd $TRAVIS_BUILD_DIR
|
cd $TRAVIS_BUILD_DIR
|
||||||
export CC="/usr/bin/clang"
|
|
||||||
export CXX="/usr/bin/clang++"
|
|
||||||
export CFLAGS="-m32"
|
|
||||||
export CXXFLAGS="-m32"
|
|
||||||
python waf configure --sdl2=$HOME/Library/Frameworks/SDL2.framework/ --vgui=$TRAVIS_BUILD_DIR/vgui-dev --build-type=debug || die
|
python waf configure --sdl2=$HOME/Library/Frameworks/SDL2.framework/ --vgui=$TRAVIS_BUILD_DIR/vgui-dev --build-type=debug || die
|
||||||
python waf build -j2 || die
|
python waf build -j2 || die
|
||||||
mkdir -p pkg/
|
mkdir -p pkg/
|
||||||
|
@ -85,7 +85,8 @@ SOURCE_NAME=$1
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
PUSHED_COMMIT=$(curl --fail https://raw.githubusercontent.com/FWGS/xash3d-deploy/$SOURCE_NAME-$TRAVIS_BRANCH/commit.txt)
|
PUSHED_COMMIT=$(curl --fail https://raw.githubusercontent.com/FWGS/xash3d-deploy/$SOURCE_NAME-$TRAVIS_BRANCH/commit.txt)
|
||||||
if [ $? -ne 0 ]; then
|
echo "Pushed commit: $PUSHED_COMMIT"
|
||||||
|
if [ ! -z "$PUSHED_COMMIT" ]; then
|
||||||
REV_RANGE="HEAD...$PUSHED_COMMIT"
|
REV_RANGE="HEAD...$PUSHED_COMMIT"
|
||||||
else
|
else
|
||||||
REV_RANGE="HEAD"
|
REV_RANGE="HEAD"
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
# python 2.7 cp65001 support
|
||||||
|
python -m pip install -U pip
|
||||||
|
pip install win-unicode-console
|
||||||
|
|
||||||
# SDL2 for VC prebuilt
|
# SDL2 for VC prebuilt
|
||||||
curl http://libsdl.org/release/SDL2-devel-$SDL_VERSION-VC.zip -o SDL2.zip
|
curl http://libsdl.org/release/SDL2-devel-$SDL_VERSION-VC.zip -o SDL2.zip
|
||||||
unzip SDL2.zip
|
unzip SDL2.zip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user