diff --git a/.travis.yml b/.travis.yml index a669700c0..c3f1cdfb6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,10 @@ env: # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created # via the "travis encrypt" command using the project repo's public key - secure: "jybGzAdUbqt9vWR/GEnRd96BgAi/7Zd1+2HK68j/i/8+/1YH2XxLOy4Jv/DUBhBlJIkxs/Xv8dRcUlFOclZDHX1d/9Qnsqd3oUVkD7k1y7cTOWy9TBQaE/v/kZo3LpzA3xPwwthrb0BvqIbOfIELi5fS5s8ba85WFRg3AX70wWE=" + # macOS builds FTP upload login + - secure: "MegynKyJpyL7XDwdWVEbypQh7CLjqOqOi9lGF97G7Fq0HosVZTmnwjHhmIPZspTP7ES4UbxM3rs/f3ce7sp9JN2ShRJpduD6UEFc8egQXBte9J3obUBIdUxPTRdhnht7VJ+u+pksK1S/Bm1Cs6l0eEluP3vmcaXWMykVQcZsPhY=" + # macOS builds FTP upload password + - secure: "jQcAaWAdDy0+vlNu4POMX8322HanCOQEUTdpviWTAUjWQTjMa0UTM4+zVVgrtEaHMpBaVYYbTT3Rg5BQ9oG+2SiVLJBQQ2XoMcos/YrjPVT6inB02Gs0vFjP29LdPAQVrB8CkAcfQr6u+Z2C+RqAtwhE09LsBUMXjRDzPAtr1CM=" - macos_qt_formula=qt@5.5 addons: apt: @@ -62,6 +66,15 @@ script: - if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "${TRAVIS_OS_NAME}" = "osx" ]; then make package; fi - if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./openmw_test_suite; fi - if [ "$COVERITY_SCAN_BRANCH" != 1 ] && [ "${TRAVIS_OS_NAME}" = "linux" ]; then cd .. && ./CI/check_tabs.sh; fi + - cd "${TRAVIS_BUILD_DIR}" +deploy: + provider: script + script: ./CI/deploy.osx.sh + skip_cleanup: true + on: + branch: master + condition: "$TRAVIS_EVENT_TYPE = cron && $TRAVIS_OS_NAME = osx" + repo: OpenMW/openmw notifications: email: recipients: diff --git a/CI/deploy.osx.sh b/CI/deploy.osx.sh new file mode 100755 index 000000000..1ff6f89c3 --- /dev/null +++ b/CI/deploy.osx.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +cd build + +DATE=`date +'%d%m%Y'` +SHORT_COMMIT=`git rev-parse --short ${TRAVIS_COMMIT}` +TARGET_FILENAME="OpenMW-${DATE}-${SHORT_COMMIT}.dmg" + +curl --ssl --ftp-create-dirs -T *.dmg -u $OSX_FTP_USER:$OSX_FTP_PASSWORD "ftp://s3.mydevil.net:21/nightly/${TARGET_FILENAME}"