forked from DanBloomberg/leptonica
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
43 lines (35 loc) · 889 Bytes
/
.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
language: c
notifications:
email: false
sudo: required
dist: trusty
os:
- linux
- osx
branches:
only:
- master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libwebp-dev
#- libpng12-dev
#- libjpeg8-dev
#- libtiff5-dev
#- libgif-dev
#- libopenjp2-7-dev
before_install:
- if [[ $TRAVIS_OS_NAME == linux ]]; then LINUX=true; fi
- if [[ $TRAVIS_OS_NAME == osx ]]; then OSX=true; fi
install:
- if [[ $LINUX ]]; then sudo apt-get update; fi
- if [[ $LINUX ]]; then sudo apt-get install -y libwebp-dev libpng12-dev libjpeg8-dev libtiff5-dev libgif-dev libopenjpeg-dev; fi
- wget --no-check-certificate http://www.cmake.org/files/v3.4/cmake-3.4.1-Linux-x86_64.sh
- sudo sh cmake-3.4.1-Linux-x86_64.sh --skip-license --prefix=/usr
script:
- mkdir build
- cd build
- cmake .. -DBUILD_PROG=1
- make