mirror of https://github.com/OpenMW/openmw.git
Merge branch 'remove-unused-scripts' into 'master'
Remove unused CI scripts See merge request OpenMW/openmw!4156pull/3236/head
commit
3d248247d5
@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash -ex
|
|
||||||
|
|
||||||
#sudo ln -sf /usr/bin/clang-6 /usr/local/bin/clang
|
|
||||||
#sudo ln -sf /usr/bin/clang++-6 /usr/local/bin/clang++
|
|
@ -1,91 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
APPVEYOR=""
|
|
||||||
CI=""
|
|
||||||
|
|
||||||
PACKAGE=""
|
|
||||||
PLATFORM=""
|
|
||||||
CONFIGURATION=""
|
|
||||||
VS_VERSION=""
|
|
||||||
|
|
||||||
if [ -z $PLATFORM ]; then
|
|
||||||
PLATFORM=`uname -m`
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z $CONFIGURATION ]; then
|
|
||||||
CONFIGURATION="Debug"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $VS_VERSION in
|
|
||||||
14|14.0|2015 )
|
|
||||||
GENERATOR="Visual Studio 14 2015"
|
|
||||||
MSVC_YEAR="2015"
|
|
||||||
MSVC_VER="14.0"
|
|
||||||
;;
|
|
||||||
|
|
||||||
# 12|2013|
|
|
||||||
* )
|
|
||||||
GENERATOR="Visual Studio 12 2013"
|
|
||||||
MSVC_YEAR="2013"
|
|
||||||
MVSC_VER="12.0"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case $PLATFORM in
|
|
||||||
x64|x86_64|x86-64|win64|Win64 )
|
|
||||||
BITS=64
|
|
||||||
;;
|
|
||||||
|
|
||||||
x32|x86|i686|i386|win32|Win32 )
|
|
||||||
BITS=32
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case $CONFIGURATION in
|
|
||||||
debug|Debug|DEBUG )
|
|
||||||
CONFIGURATION=Debug
|
|
||||||
;;
|
|
||||||
|
|
||||||
release|Release|RELEASE )
|
|
||||||
CONFIGURATION=Release
|
|
||||||
;;
|
|
||||||
|
|
||||||
relwithdebinfo|RelWithDebInfo|RELWITHDEBINFO )
|
|
||||||
CONFIGURATION=RelWithDebInfo
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -z $APPVEYOR ]; then
|
|
||||||
echo "Running ${BITS}-bit MSVC${MSVC_YEAR} ${CONFIGURATION} build outside of Appveyor."
|
|
||||||
|
|
||||||
DIR=$(echo "$0" | sed "s,\\\\,/,g" | sed "s,\(.\):,/\\1,")
|
|
||||||
cd $(dirname "$DIR")/..
|
|
||||||
else
|
|
||||||
echo "Running ${BITS}-bit MSVC${MSVC_YEAR} ${CONFIGURATION} build in Appveyor."
|
|
||||||
|
|
||||||
cd $APPVEYOR_BUILD_FOLDER
|
|
||||||
fi
|
|
||||||
|
|
||||||
BUILD_DIR="MSVC${MSVC_YEAR}_${BITS}"
|
|
||||||
cd ${BUILD_DIR}
|
|
||||||
|
|
||||||
which msbuild > /dev/null
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
msbuild() {
|
|
||||||
/c/Program\ Files\ \(x86\)/MSBuild/${MSVC_VER}/Bin/MSBuild.exe "$@"
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z $APPVEYOR ]; then
|
|
||||||
msbuild OpenMW.sln //t:Build //p:Configuration=${CONFIGURATION} //m:8
|
|
||||||
else
|
|
||||||
msbuild OpenMW.sln //t:Build //p:Configuration=${CONFIGURATION} //m:8 //logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
|
||||||
fi
|
|
||||||
|
|
||||||
RET=$?
|
|
||||||
if [ $RET -eq 0 ] && [ ! -z $PACKAGE ]; then
|
|
||||||
msbuild PACKAGE.vcxproj //t:Build //m:8
|
|
||||||
RET=$?
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit $RET
|
|
@ -1,26 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# This script expect the following environment variables to be set:
|
|
||||||
# - OSX_DEPLOY_KEY: private SSH key, must be encoded like this before adding it to Travis secrets: https://github.com/travis-ci/travis-ci/issues/7715#issuecomment-433301692
|
|
||||||
# - OSX_DEPLOY_HOST: string specifying SSH of the following format: ssh-user@ssh-host
|
|
||||||
# - OSX_DEPLOY_PORT: SSH port, it can't be a part of the host string because scp doesn't accept hosts with ports
|
|
||||||
# - OSX_DEPLOY_HOST_FINGERPRINT: fingerprint of the host, can be obtained by using ssh-keygen -F [host]:port & putting it in double quotes when adding to Travis secrets
|
|
||||||
|
|
||||||
SSH_KEY_PATH="$HOME/.ssh/openmw_deploy"
|
|
||||||
REMOTE_PATH="\$HOME/nightly"
|
|
||||||
|
|
||||||
echo "$OSX_DEPLOY_KEY" > "$SSH_KEY_PATH"
|
|
||||||
chmod 600 "$SSH_KEY_PATH"
|
|
||||||
echo "$OSX_DEPLOY_HOST_FINGERPRINT" >> "$HOME/.ssh/known_hosts"
|
|
||||||
|
|
||||||
cd build || exit 1
|
|
||||||
|
|
||||||
DATE=$(date +'%d%m%Y')
|
|
||||||
SHORT_COMMIT=$(git rev-parse --short "${TRAVIS_COMMIT}")
|
|
||||||
TARGET_FILENAME="OpenMW-${DATE}-${SHORT_COMMIT}.dmg"
|
|
||||||
|
|
||||||
if ! ssh -p "$OSX_DEPLOY_PORT" -i "$SSH_KEY_PATH" "$OSX_DEPLOY_HOST" "ls \"$REMOTE_PATH\"" | grep "$SHORT_COMMIT" > /dev/null; then
|
|
||||||
scp -P "$OSX_DEPLOY_PORT" -i "$SSH_KEY_PATH" ./*.dmg "$OSX_DEPLOY_HOST:$REMOTE_PATH/$TARGET_FILENAME"
|
|
||||||
else
|
|
||||||
echo "An existing nightly build for commit ${SHORT_COMMIT} has been found, skipping upload."
|
|
||||||
fi
|
|
Loading…
Reference in New Issue