From eb81b274225c2d98e99560201412dc4377e53b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Thu, 28 Jul 2016 11:58:02 +0200 Subject: [PATCH 1/4] Testing OS X build --- .travis.yml | 9 +++++++-- setup_venv_osx.sh | 7 +++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100755 setup_venv_osx.sh diff --git a/.travis.yml b/.travis.yml index 05ecfe0..9c98aa7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,18 @@ language: python matrix: include: - - python: "3.5" - - python: "nightly" + - os: linux + python: 3.5 + - os: osx + language: generic + - os: linux + python: nightly allow_failures: # Doesn't currently work with pyinstaller - python: "nightly" before_install: + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./setup_venv_osx.sh; fi - "pip install pyinstaller" install: diff --git a/setup_venv_osx.sh b/setup_venv_osx.sh new file mode 100755 index 0000000..4a9ffe5 --- /dev/null +++ b/setup_venv_osx.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +brew update; +brew install python3; +virtualenv venv -p python3; +source venv/bin/activate; + From 059b25b2e25a71dd98bca4894277547b8595db00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Thu, 28 Jul 2016 12:03:51 +0200 Subject: [PATCH 2/4] Should now properly use virtualenv --- .travis.yml | 2 +- setup_venv_osx.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c98aa7..440d6e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ matrix: - python: "nightly" before_install: - - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./setup_venv_osx.sh; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./setup_venv_osx.sh; source venv/bin/activate; fi - "pip install pyinstaller" install: diff --git a/setup_venv_osx.sh b/setup_venv_osx.sh index 4a9ffe5..10d97b2 100755 --- a/setup_venv_osx.sh +++ b/setup_venv_osx.sh @@ -3,5 +3,5 @@ brew update; brew install python3; virtualenv venv -p python3; -source venv/bin/activate; +# Now run `source venv/bin/activate` in the shell where the virtualenv should be used From 05ba3071bcec3c99b82cfc9c27a595d9bdb8b3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Thu, 28 Jul 2016 12:19:12 +0200 Subject: [PATCH 3/4] Fixed osx incompatibility in build.sh --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 833620e..96d4cb0 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ # NOTE: Highly WIP! # -PYINSTALL_TARGETS=$(find -maxdepth 2 | egrep 'aw-.*/.*\.spec') +PYINSTALL_TARGETS=$(find . -maxdepth 2 | egrep 'aw-.*/.*\.spec') function build_fail { echo "Failed to build $1" From 3da100a42fb2312360ce7b0033fa433b43cc8d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Thu, 28 Jul 2016 12:28:58 +0200 Subject: [PATCH 4/4] Updated submodules to versions with new specs --- aw-server | 2 +- aw-watcher-afk | 2 +- aw-watcher-x11 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aw-server b/aw-server index 76dec73..bb353ea 160000 --- a/aw-server +++ b/aw-server @@ -1 +1 @@ -Subproject commit 76dec737a6e501b5203b159ce79e028891889bdd +Subproject commit bb353eae5eb1414d816f22c90c995238208688fb diff --git a/aw-watcher-afk b/aw-watcher-afk index 6af565e..6c43b05 160000 --- a/aw-watcher-afk +++ b/aw-watcher-afk @@ -1 +1 @@ -Subproject commit 6af565eef72e731e944210a1b6a72b5a2ad0942a +Subproject commit 6c43b05d061e062b76367c964b4ee165ac211b22 diff --git a/aw-watcher-x11 b/aw-watcher-x11 index 127bb5e..9a16c17 160000 --- a/aw-watcher-x11 +++ b/aw-watcher-x11 @@ -1 +1 @@ -Subproject commit 127bb5e3432bce701c1ab1a1abdd2e149440608e +Subproject commit 9a16c17a4e46bfccf045b25717b6fa99e88355b8