From 47c8365cdde9e02de92c9d4eff1e8d96e9fb2276 Mon Sep 17 00:00:00 2001 From: Colin Edwards Date: Sun, 9 Oct 2016 17:26:44 -0500 Subject: [PATCH] OSX Travis build --- .travis.yml | 26 ++++++++++++++++++++++++++ CI/before-deploy-osx.sh | 7 +++++++ CI/before-script-osx.sh | 3 +++ CI/install-dependencies-osx.sh | 2 ++ 4 files changed, 38 insertions(+) create mode 100644 .travis.yml create mode 100755 CI/before-deploy-osx.sh create mode 100755 CI/before-script-osx.sh create mode 100755 CI/install-dependencies-osx.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..d326c34e8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +os: osx +env: + matrix: + - CMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake + global: + # AWS S3 creds + # access key + - secure: "MfhOg+84yb4ZHB2tM8PIPFQX2Y+WLN0I0iiAgyLC4KaHPUoNOyloe9yk6OjV7Lj7SZWqTlQUsqHa8S9mOUswGIody1Ydglo4RvyGOKCd8I6b2ri/jE8qHVuD9sO+sNlIxq4YqqG/qReTsbSs2YEgLneZUCYLCk/fihl8L6eVuSc=" + # secret + - secure: "JRQVU2zgC3hY6CEY+Crmh/upp93En0BzKaLcsuBT538johNlK7m5hn3m2UOw63seLvBvVaKKWUDj9N986a3DwcXxWPMyF/9ctXgNWy39WzaVWxrbVR5nQB1fdiRp5YEgkoVN+gEm3OVF7sV5AGzh5/8CvEdRCoTLIGgMGHxW9mc=" +language: cpp +before_install: "./CI/install-dependencies-osx.sh" +before_script: "./CI/before-script-osx.sh" +script: cd ./build && make -j4 && cd - +before_deploy: "./CI/before-deploy-osx.sh" +deploy: + provider: s3 + access_key_id: $AWS_ACCESS_KEY + secret_access_key: $AWS_SECRET_KEY + skip_cleanup: true + local_dir: nightly + bucket: obs-nightly + region: us-west-2 + acl: public_read + on: + condition: "$TRAVIS_EVENT_TYPE = cron" \ No newline at end of file diff --git a/CI/before-deploy-osx.sh b/CI/before-deploy-osx.sh new file mode 100755 index 000000000..684ae7760 --- /dev/null +++ b/CI/before-deploy-osx.sh @@ -0,0 +1,7 @@ +export GIT_HASH=$(git rev-parse --short HEAD) +export FILE_DATE=$(date +%Y-%m-%d.%H:%M:%S) +export FILENAME=$FILE_DATE-$GIT_HASH-osx.zip +mkdir nightly +cd ./build/rundir/RelWithDebInfo +zip -r -X $FILENAME . +mv ./$FILENAME ../../../nightly diff --git a/CI/before-script-osx.sh b/CI/before-script-osx.sh new file mode 100755 index 000000000..449308fc5 --- /dev/null +++ b/CI/before-script-osx.sh @@ -0,0 +1,3 @@ +mkdir build +cd build +cmake .. \ No newline at end of file diff --git a/CI/install-dependencies-osx.sh b/CI/install-dependencies-osx.sh new file mode 100755 index 000000000..648d4d196 --- /dev/null +++ b/CI/install-dependencies-osx.sh @@ -0,0 +1,2 @@ +brew update +brew install ffmpeg x264 qt5 \ No newline at end of file