Back to unix ci

This commit is contained in:
Bastian Kleineidam 2013-12-05 21:00:51 +01:00
parent ef67f61209
commit 70ee385c43
4 changed files with 50 additions and 22 deletions

View file

@ -1,5 +1,4 @@
language:
- objective-c
- python
python:
- "2.7"
@ -9,16 +8,13 @@ branches:
- travis
# install required programs
before_install:
- brew update
- brew install python
- brew install pyqt
- brew install gettext
- brew link --force gettext
- sudo apt-get update -qq
- sudo apt-get install -qq python-dev qt4-dev-tools
# command to install dependencies
install:
- pip install -r requirements.txt --use-mirrors
# command to run tests
script: make appinstall
script: make test PYTESTOPTS="--tb=short" TESTS="tests/test_network.py tests/test_strformat.py"
# do not send emails of broken builds
notifications:
email: false

View file

@ -162,16 +162,6 @@ dist: locale MANIFEST chmod
app: distclean localbuild chmod
$(PYTHON) setup.py py2app $(PY2APPOPTS)
appinstall: app
mkdir -p dist/mnt
hdiutil attach -mountpoint dist/mnt dist/$(APPNAME)-$(VERSION).dmg
# cat /usr/local/lib/python2.7/site-packages/modulegraph/find_modules.py
# cat /usr/local/lib/python2.7/site-packages/py2app/recipes/sip.py
man -P cat open
open -n dist/mnt/$(APPNAME).app --args http://www.example.org
sleep 10
-hdiutil detach dist/mnt
# Build RPM installer with cx_Freeze
rpm:
$(MAKE) -C doc/html

24
doc/dot-travis-osx.yml Normal file
View file

@ -0,0 +1,24 @@
language:
- objective-c
- python
python:
- "2.7"
# whitelist of git branches to build
branches:
only:
- travis
# install required programs
before_install:
- brew update
- brew install python
- brew install pyqt
- brew install gettext
- brew link --force gettext
# command to install dependencies
install:
- pip install -r requirements.txt --use-mirrors
# command to run tests
script: make app
# do not send emails of broken builds
notifications:
email: false

View file

@ -116,15 +116,33 @@ Manual setup for OSX systems
1. Install the XCode developer tools
2. Install homebrew_ and then install pyqt.
2. Install homebrew_
.. _homebrew: http://mxcl.github.com/homebrew/
3. Install dependencies
brew update
brew install python
brew install pyqt
brew install gettext
# link gettext or put the msgfmt binary in your PATH
brew link --force gettext
pip install -r requirements.txt --use-mirrors
3. Run ``make app``.
Note: this appears not to be working due to bugs
in third-party libraries (but it worked the last time I had
an OSX system available).
4. Install the resulting .dmg
# mount DMG
mkdir -p dist/mnt
hdiutil attach -mountpoint dist/mnt dist/LinkChecker-x.y.z.dmg
# to run directly
open -n dist/mnt/LinkChecker.app --args http://www.example.org
# install the app
sudo cp -r dist/mnt/LinkChecker.app /Applications
# unmount DMG
hdiutil detach dist/mnt
WSGI web interface