Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #13 from mikemcquaid/travis-ci
Browse files Browse the repository at this point in the history
Add Travis CI build
  • Loading branch information
MikeMcQuaid committed Jan 30, 2015
2 parents ffe23cb + 788ac27 commit 0c94850
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
@@ -0,0 +1,17 @@
language: cpp
os:
- linux
- osx
env:
- XMAKE=qmake
- XMAKE=cmake
before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get update; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew update; fi
install:
- if [ $TRAVIS_OS_NAME = linux ] && [ $XMAKE = cmake ]; then sudo apt-get install -y cmake; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -y libqt4-dev qt4-qmake; fi
- if [ $TRAVIS_OS_NAME = osx ] && [ $XMAKE = cmake ]; then brew install cmake; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install qt; fi
script:
- $XMAKE . && make
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -18,6 +18,8 @@ make
## Status
Qocoa classes are currently provided for NSButton, a spinning NSProgressIndicator and NSSearchField. There is a [TODO list](https://github.com/mikemcquaid/Qocoa/blob/master/TODO.md) for classes I hope to implement.

[![Build Status](https://travis-ci.org/mikemcquaid/Qocoa.svg?branch=master)](https://travis-ci.org/mikemcquaid/Qocoa)

## Usage
For each class you want to use copy the [`qocoa_mac.h`](https://github.com/mikemcquaid/Qocoa/blob/master/qocoa_mac.h), `$CLASS.h`, `$CLASS_mac.*` and `$CLASS_nonmac.*` files into your source tree and add them to your buildsystem. Examples are provided for [CMake](https://github.com/mikemcquaid/Qocoa/blob/master/CMakeLists.txt) and [QMake](https://github.com/mikemcquaid/Qocoa/blob/master/Qocoa.pro).

Expand Down

0 comments on commit 0c94850

Please sign in to comment.