forked from OSGeo/libgeotiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (65 loc) · 1.74 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
matrix:
fast_finish: true
include:
- os: linux
compiler: gcc
language: cpp
sudo: required
dist: jammy
env:
- BUILD_NAME=linux
# Causes "Owner OSGeo does not have enough credits" since we downgraded our Travis plan
#- os: osx
# osx_image: xcode14.2
# compiler: clang
# cache:
# apt: true
# directories:
# - $HOME/.ccache
# env:
# - BUILD_NAME=osx
# - CC=clang
# - CXX=clang++
# addons:
# homebrew:
# packages:
# - ccache
cache:
directories:
- $HOME/.ccache
before_install:
- if test "$TRAVIS_OS_NAME" = "linux"; then sudo apt install g++ libjpeg-dev libz-dev libtiff-dev libsqlite3-dev; fi
- if test "$TRAVIS_OS_NAME" = "osx"; then brew update; brew install ccache; fi
install:
- git clone --depth=1 https://github.com/OSGeo/PROJ proj
- export CC="ccache $CC"
- export CXX="ccache $CXX"
- $CC --version
- (cd proj && cmake . -DBUILD_APPS=OFF -DBUILD_TESTING=OFF && make -j3 && sudo make install && (if test "$TRAVIS_OS_NAME" = "linux"; then sudo ldconfig; fi))
- cd libgeotiff
- ./autogen.sh
- ./configure
- make distcheck
- mkdir libgeotiff
- cat libgeotiff*.tar.gz | tar xz -C libgeotiff --strip-components=1
- cd libgeotiff
- mkdir build_autoconf
- cd build_autoconf
- CFLAGS="-Wall -Wextra -Werror" ../configure
- make -j3
- make check
- cd ..
- mkdir build_cmake
- cd build_cmake
- cmake .. -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_C_FLAGS="-Wall -Wextra -Werror"
- make -j3
script:
- echo "done"
notifications:
#email:
# recipients:
irc:
channels:
- "irc.freenode.org#gdal"
use_notice: true