forked from openstenoproject/plover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
83 lines (77 loc) · 2.8 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: generic
matrix:
include:
- os: linux
dist: trusty
sudo: required
# Disabled until Travis CI allows using a different cache ID for each OS.
# cache:
# directories:
# - $HOME/.cache/pip
# before_cache:
# - rm -rf $HOME/.cache/pip/log
- os: osx
cache:
directories:
- /Users/travis/Library/Caches/pip
before_cache:
- rm -rf /Users/travis/Library/Caches/pip/log
before_install:
- |
case "$TRAVIS_OS_NAME" in
osx)
brew update &&
brew install python --framework &&
brew link --overwrite python &&
brew install wxpython &&
true
;;
linux)
sudo apt-add-repository -y ppa:benoit.pierre/plover &&
sudo apt-get update -qq &&
sudo apt-get install -y cython libudev-dev libusb-1.0-0-dev python-dev python-wxgtk3.0 python-xlib &&
true
;;
esac &&
./setup.py write_requirements &&
# Upgrade setuptools, we need at least 19.6 to prevent issues with Cython patched 'build_ext' command.
pip --disable-pip-version-check --timeout=5 --retries=2 install --upgrade --user 'setuptools>=19.6' &&
# Manually install Cython if not already to speedup hidapi build.
pip --disable-pip-version-check --timeout=5 --retries=2 install --user Cython &&
pip --disable-pip-version-check --timeout=5 --retries=2 install --upgrade --user -r requirements.txt &&
# And now downgrade setuptools so py2app works correctly...
pip --disable-pip-version-check --timeout=5 --retries=2 install --upgrade --user 'setuptools==19.2' &&
pip --disable-pip-version-check list &&
true
install: true
script:
- git fetch --unshallow
- ./setup.py patch_version
- ./setup.py test
before_deploy:
- |
case "$TRAVIS_OS_NAME" in
osx)
make -C osx &&
true
;;
linux)
./setup.py bdist_egg &&
./setup.py bdist_wheel &&
true
;;
esac &&
du -hs dist/*
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: vBKvc1uV688/Jn2bYvlFYrhVb+1X9t8iCC4LN87cZvEFNe7DEhSU2DZhaYceTYVZGKNjSzT1ScGrAGc0IHVN9azor3syDJlZ5LvSjiN/sj83MDe0TfPURgYdd5UaLDKsfknd0fMOgJyUiDadNS7il0Yk3Tmu+bw0cLZr24QzHUFfI3xIeP6EfByPrO4yGctykTmhNPpMKqpBJv4Y4qfYkMQmujgR09nn+B6pkgVekl44+zScS/ivHy4Rgdyp1pakyiPGJf4zI5VG+BcW6SR3cJ8JF2h5oEM3S6gk0yDpw2WgfaA2c0qWsIHhy5fIYd7HivJjGpPsEEOOCm671QoLK66JZbFI2l6nP62nf01vxuQLX8sQIlOh6YSC17ML3UWJkrV3VSMvo31vznKsr8oiTDYFyaheOKc1wMj28StDI5oXfyyLEBA0RH6gYjRwTGblEVc2CWg9T3CgJb9RY1s8CyFEHChoj7RlJ6oeJpeiAPpsnUNPT6RIYrjaqVt/jnWAjBxmEOlWR3xPSZXVla5E3NwcB8CjXqxe7ZNU2AzQ/vcbSDtRCOvnbqV7CvUwh4ET02h4jr34SSYUyM8Zcnkw9RvHSy5vJj/xq2r3stB+xdxsPkLjybeTMaGeCNVJ9FKImgFgW5E8mzx9Hm3x1ECjDhtYI1g8g1kE9qmww7JaiOU=
draft: true
file_glob: true
file:
- "dist/*.dmg"
- "dist/*.egg"
- "dist/*.whl"
on:
tags: true