-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
43 lines (35 loc) · 1.2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# @see https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
addons:
apt:
packages:
- xvfb
language: python
# Use travis caching feature to speed-up the builds
cache: pip
dist: trusty
matrix:
include:
- os: linux
sudo: required
python: 3.5
env: TOXENV=py35
- os: linux
sudo: required
python: 2.7
env: TOXENV=py27
- os: osx
language: generic
env: TOXENV=py27
- os: osx
language: generic
env: TOXENV=py35
before_script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install libgtk-3-dev -y || sudo apt-cache search libgtk3; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- export BASE_DIR=$PWD && cd `mktemp -d` && export TEMP_LIB_DIR=$PWD && git clone https://github.com/andlabs/libui . && mkdir build && cd build && cmake .. && make && cd $BASE_DIR
script:
- mkdir pylibui/libui/sharedlibs
- cp -f $TEMP_LIB_DIR/build/out/* pylibui/libui/sharedlibs/
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then xvfb-run python -m unittest ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then python -m unittest ; fi