Skip to content

Commit

Permalink
Merge pull request #18 from ActivityWatch/build-osx
Browse files Browse the repository at this point in the history
Successful OS X builds
  • Loading branch information
ErikBjare committed Jul 28, 2016
2 parents 0805a9d + 3da100a commit 030ed65
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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; source venv/bin/activate; fi
- "pip install pyinstaller"

install:
Expand Down
2 changes: 1 addition & 1 deletion aw-server
Submodule aw-server updated 1 files
+1 −1 aw-server.spec
2 changes: 1 addition & 1 deletion aw-watcher-afk
2 changes: 1 addition & 1 deletion aw-watcher-x11
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 7 additions & 0 deletions setup_venv_osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

brew update;
brew install python3;
virtualenv venv -p python3;

# Now run `source venv/bin/activate` in the shell where the virtualenv should be used

0 comments on commit 030ed65

Please sign in to comment.