diff --git a/.travis.yml b/.travis.yml index 898ad6c5f9..167f2f1b94 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,6 +38,12 @@ matrix: osx_image: xcode9.3 script: - xcodebuild -target RetroArch -configuration Release -project pkg/apple/RetroArch_Metal.xcodeproj + deploy: + skip_cleanup: true + provider: script + script: bash travis_metal_deploy.sh + on: + branch: master script: - ./configure diff --git a/travis-deploy-key.enc b/travis-deploy-key.enc new file mode 100644 index 0000000000..c486692701 Binary files /dev/null and b/travis-deploy-key.enc differ diff --git a/travis_metal_deploy.sh b/travis_metal_deploy.sh new file mode 100644 index 0000000000..2fb7316123 --- /dev/null +++ b/travis_metal_deploy.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +mkdir -p ~/.ssh + +chmod 700 ~/.ssh + +echo "Decrypting SSH key..." + +openssl aes-256-cbc -K $encrypted_e9bb4da59666_key -iv $encrypted_e9bb4da59666_iv -in travis-deploy-key.enc -out ~/.ssh/id_rsa -d + +chmod 600 ~/.ssh/id_rsa + +echo "Creating DMG image..." + +cd ${TRAVIS_BUILD_DIR}/pkg/apple/build/Release + +FILENAME=$(date +%F)_RetroArch_Metal.dmg + +hdiutil create -volname RetroArch -srcfolder ./ -ov -format UDZO ${FILENAME} + +echo "Uploading to server..." + +rsync -avhP -e 'ssh -p 12346 -o StrictHostKeyChecking=no' ${FILENAME} travis@bot.libretro.com:~/nightly/apple/osx/x86_64/