forked from autotrace/autotrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
94 lines (84 loc) · 3.77 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
84
85
86
87
88
89
90
91
92
93
94
---
os:
- linux
- osx
language: c
compiler:
- gcc
notifications:
email: false
sudo: required
dist: xenial # ubuntu 16.06, thankfully ignored in osx.
addons:
apt:
packages:
- autotools-dev
- autopoint
- diffutils
- libtool
- intltool
- libpng-dev
- libexif-dev
- libtiff5-dev
- libjpeg-dev
- libxml2-dev
- libbz2-dev
- libpstoedit-dev
- libmagickcore-dev
- libfreetype6-dev
- fakeroot
- checkinstall
- mingw-w64
- binutils-mingw-w64
- binutils-mingw-w64-x86-64
- mingw-w64-tools
- nsis
before_install:
- test "$TRAVIS_OS_NAME" != osx || brew update
- test "$TRAVIS_OS_NAME" != osx || for pkg in gettext intltool glib libtool autoconf automake pkg-config; do brew install $pkg || brew upgrade $pkg; done
- test "$TRAVIS_OS_NAME" != osx || brew install imagemagick pstoedit
- test "$TRAVIS_OS_NAME" != osx || brew install graphicsmagick # this one has magick/api.h, it needs MAGIC_* with configure below, sigh.
before_script:
- test "$TRAVIS_OS_NAME" != osx || export PATH=${PATH}:/usr/local/opt/gettext/bin
- autoreconf -ivf
- intltoolize --force
- aclocal
- ls -la /usr/local/lib/pkgconfig/ || true
- test -f /usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/libffi.pc && ln -s ../../Cellar/libffi/3.2.1/lib/pkgconfig/libffi.pc /usr/local/lib/pkgconfig/ || true
- test "$TRAVIS_OS_NAME" != osx || sh ./configure MAGICK_CFLAGS="-mmacosx-version-min=10.8 $(pkg-config graphicsmagick --cflags)" MAGICK_LIBS="$(pkg-config graphicsmagick --libs)"
- test "$TRAVIS_OS_NAME" != linux || ./configure --prefix=/usr
script:
- test "$TRAVIS_OS_NAME" != osx || export MACOSX_DEPLOYMENT_TARGET=10.8
- make
- test "$TRAVIS_OS_NAME" != osx || DYLD_LIBRARY_PATH=.libs objdump -macho -dylibs-used .libs/autotrace || true
- test "$TRAVIS_OS_NAME" != linux || LD_LIBRARY_PATH=.libs ldd .libs/autotrace || true
- "./autotrace -v"
- ./tests/runtests.sh
- (cd distribute; sh ./distribute.sh)
# avoid silly error: Skipping a deployment with the releases provider because this is not a tagged commit
- test -n "$TRAVIS_TAG" || export TRAVIS_TAG="travis-$(date +%Y%m%d).$TRAVIS_BUILD_NUMBER"
- env || true
deploy:
provider: releases
api_key:
## repo autotrace/autotrace with public_repo
secure: X39eGZMQReXByDuPlRzbpDj1AAWFgHEots1seZOyMAOed32we0HRRHBuRlYTuSyT6vDvTY9FFbYmI2qRYMlkMUfpGnxlsC/PhIdej3OYdvpQTjFWPbrgnhT8ugWu0CnafaxD3XCR08dkcS498JsmgnQ+PbvidE0JhvAXsCNlD1A=
## for repo jnweiger/autotrace
# secure: szvq+YLTUow2NRYcf9hw/SZAjh4qg7Ei71QP9Sjt0VuTQLH67a0OdKZqc8MDBrxo3O3jxQEryRWmbP/F3FT7ufwbvHc0c/GNcalOQ0l+q3lFlYAIb8L2a8EIKNk2XPMHiUdlbRm98mMLemWR+FcvUKwUqUSOUaUOcGPdNcli2eego7CbR6LksN0+8Aq5+V8nlVSSQqRYfjE+/vOLNIspMTR2sjCOM8AwIWrChvMtP1Q+wthR18tq95bU9/KhnmI6Zzl5jGfR9IgxuECncZywGREylKV/HTxBleTPprgAaSWdmUshFeNJn3LRtqruv3O2lkLu/Fcjgb+g/YOk+kfLi8Dqr6qlaJd1DHu4ea3QQK5cSVnFqSwbG/51+X3aHjjIShj5MGh6ca0870OHdBgMJASSecwfkiukiDwJB6HvX8MNrajFtG+8WJ9+oiQafzNsQY/L0dLWQx80hbWkcj3fKaRkyT5Tcy9a1+Eu2D5nzlRGbDuio/9opTRN0T5p5QTsMmo7dW94HalZ+JLovKZtKpbGqRUG9Bpk2icPnPDFVjTajkaP0blfuWtkbR+wnsqX0SiqxBrt07zac+wXi741wj72wsDtdGJJJg9gj+kEJ7lNr1hDe026/0ql51xz39vyck/1kUGmcdj3aKqgl+UB3kH9+Z7pr13Mf8uJEHa7p4g=
file: distribute/out/autotrace*
file_glob: true
overwrite: true
skip_cleanup: true
'on':
repo: autotrace/autotrace
# tags: false -- allows also to deploy with untagged-XXXXX tag names. Was a default previously.
tags: true
all_branches: true
## if TRAVIS_BRANCH is travis-XXXXX.yy then a build was triggered while creating TRAVIS_TAG. That is a travis bug and should never happen.
condition: '"$TRAVIS_BRANCH" != "$TRAVIS_TAG"'
branches:
only:
- /.*/
# - future
# - /^untagged/
# - /^v\d+\.\d/