-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
57 lines (54 loc) · 3.28 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
language: c
matrix:
include:
# - os: linux
# dist: xenial
# arch: amd64
# env:
# BUILD="Ubuntu Xenial"
- os: linux
dist: xenial
arch: ppc64le
env:
BUILD="Ubuntu Xenial"
# - os: linux
# dist: bionic
# arch: amd64
# env:
# BUILD="Ubuntu Bionic"
- os: linux
dist: bionic
arch: ppc64le
env:
BUILD="Ubuntu Bionic"
- os: osx
osx_image: xcode11.3
env:
ICU_PATH="/usr/local/opt/icu4c/bin"
LIBXML2_PATH="/usr/local/opt/libxml2/bin"
PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="$PATH:$ICU_PATH:$LIBXML2_PATH" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ossp-uuid gnu-sed ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --cask osxfuse ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew list --cask ; fi
- if [[ "$TRAVIS_DIST" == "xenial" ]]; then sudo apt-get update ; fi
- if [[ "$TRAVIS_DIST" == "xenial" ]]; then sudo apt-get install -y libfuse2 libfuse-dev ; fi
- if [[ "$TRAVIS_DIST" == "xenial" ]]; then sudo apt-get install -y libxml2 libxml2-dev ; fi
- if [[ "$TRAVIS_DIST" == "xenial" ]]; then sudo apt-get install -y libicu55 libicu-dev icu-devtools ; fi
- if [[ "$TRAVIS_DIST" == "xenial" ]]; then sudo apt-get install -y libsnmp30 libsnmp-dev ; fi
- if [[ "$TRAVIS_DIST" == "xenial" ]]; then sudo apt-get install -y libuuid1 uuid-dev ; fi
- if [[ "$TRAVIS_DIST" == "bionic" ]]; then sudo apt-get update ; fi
- if [[ "$TRAVIS_DIST" == "bionic" ]]; then sudo apt-get install -y libfuse2 libfuse-dev ; fi
- if [[ "$TRAVIS_DIST" == "bionic" ]]; then sudo apt-get install -y libxml2 libxml2-dev ; fi
- if [[ "$TRAVIS_DIST" == "bionic" ]]; then sudo apt-get install -y libicu60 libicu-dev icu-devtools ; fi
- if [[ "$TRAVIS_DIST" == "bionic" ]]; then sudo apt-get install -y libsnmp30 libsnmp-dev ; fi
- if [[ "$TRAVIS_DIST" == "bionic" ]]; then sudo apt-get install -y libuuid1 uuid-dev ; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./autogen.sh && LDFLAGS="-framework CoreFoundation -framework IOKit" ./configure --enable-icu-6x --disable-snmp --enable-warning-as-error --enable-message-checker && make ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./autogen.sh && ./configure --prefix=/tmp && make && make install ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd /tmp && git clone https://github.com/LinearTapeFileSystem/ltfs-backends.git && cd ltfs-backends ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/tmp/lib/pkgconfig ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./autogen.sh && ./configure --enable-checkonly && make ; fi