gta5view/.travis/windows_travis.sh

14 lines
817 B
Bash
Raw Normal View History

2017-12-21 19:36:56 +01:00
#!/bin/bash
QT_VERSION=5.6.3
DOCKER_IMAGE=syping/qt5-static-mingw:${QT_VERSION}
2017-12-23 07:48:01 +01:00
PROJECT_DIR_DOCKER=/gta5view
2017-12-21 19:36:56 +01:00
cd ${PROJECT_DIR} && \
docker pull ${DOCKER_IMAGE} && \
2017-12-21 19:36:56 +01:00
docker run --rm \
-v "${PROJECT_DIR}:${PROJECT_DIR_DOCKER}" \
2018-06-02 07:26:56 +02:00
-v "${HOME}/.dropbox_uploader:/root/.dropbox_uploader" \
${DOCKER_IMAGE} \
2018-06-02 07:26:56 +02:00
/bin/bash -c "export PROJECT_DIR=${PROJECT_DIR_DOCKER} && export QT_SELECT=${QT_SELECT} && export APPLICATION_VERSION=${APPLICATION_VERSION} && export QMAKE_FLAGS_QT4=${QMAKE_FLAGS_QT4} && export QMAKE_FLAGS_QT5=${QMAKE_FLAGS_QT5} && export PACKAGE_VERSION=${PACKAGE_VERSION} && export PACKAGE_BUILD=${PACKAGE_BUILD} && export PACKAGE_CODE=${PACKAGE_CODE} && export EXECUTABLE_VERSION=${EXECUTABLE_VERSION} && export EXECUTABLE_ARCH=${EXECUTABLE_ARCH} && cd ${PROJECT_DIR_DOCKER} && .travis/windows_build.sh"