forked from tsukumijima/libaribb25
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
99 lines (90 loc) · 2.47 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
95
96
97
98
99
sudo: false
language: cpp
matrix:
include:
# Linux with GNU C Compiler
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- gcc
- cmake
- cmake-data
- libpcsclite-dev
# Linux with LLVM C Compiler
- os: linux
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- clang
- cmake
- cmake-data
- libpcsclite-dev
# ARM Raspbian (jessie)
- os: linux
sudo: required
compiler: gcc
addons:
apt:
packages:
- qemu-user-static
- debootstrap
env:
- TARGET_DIST=raspbian
- TARGET_REPO=jessie
- TARGET_ARCH=armhf
- TARGET_SITE=http://archive.raspbian.com/raspbian
- TARGET_DEPS=git,cmake,libpcsclite-dev
- QEMU_CPU=arm11mpcore
# MacOS X 10.10 (Yosemite)
- os: osx
osx_image: xcode6.4
compiler: clang
# MacOS X 10.11 (El Captain)
- os: osx
osx_image: xcode7.3
compiler: clang
# macOS 10.11 (Sierra)
- os: osx
osx_image: xcode8
compiler: clang
cache:
directories:
- ${HOME}/rootfs/${TARGET_DIST}/${TARGET_REPO}/${TARGET_ARCH}/var/cache/apt/archives
before_script:
- if [ ! -z "${TARGET_DIST}" ]; then
ROOTFS="${HOME}/rootfs/${TARGET_DIST}/${TARGET_REPO}/${TARGET_ARCH}";
if [ ! -f "/usr/share/debootstrap/scripts/${TARGET_REPO}" ]; then
sudo ln -s "/usr/share/debootstrap/scripts/sid" "/usr/share/debootstrap/scripts/${TARGET_REPO}";
fi;
sudo mkdir -p "${ROOTFS}";
sudo qemu-debootstrap
--no-check-gpg --variant=buildd
--include="${TARGET_DEPS}" --arch="${TARGET_ARCH}"
"${TARGET_REPO}" "${ROOTFS}" "${TARGET_SITE}";
sudo mount --bind /home "${ROOTFS}/home";
export SHELL="sudo chroot ${ROOTFS} /bin/bash";
else
export SHELL="/bin/bash";
fi
script:
- >
${SHELL} -e <<EOF
install -d "${TRAVIS_BUILD_DIR}/build"
cd "${TRAVIS_BUILD_DIR}/build"
cmake ..
make VERBOSE=1
./b25 2>&1 | grep --color=auto "ARIB STD-B25"
if [ "${TRAVIS_OS_NAME}" != "osx" ]; then
./libaribb25.so 2>&1 | grep --color=auto "ARIB STD-B25"
fi
exit
EOF