-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (49 loc) · 1.52 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
---
#
# LuaDist Travis-CI Hook
#
# We assume C build environments
language: c
os: linux
dist: xenial
# Try using multiple Lua Implementations
env:
- TOOL="gcc" # Use native compiler (GCC usually)
- TOOL="clang" # Use clang
- TOOL="i686-w64-mingw32" # 32bit MinGW
- TOOL="x86_64-w64-mingw32" # 64bit MinGW
- TOOL="arm-linux-gnueabihf" # ARM hard-float (hf), linux
# Crosscompile builds may fail
matrix:
allow_failures:
- env: TOOL="i686-w64-mingw32"
- env: TOOL="x86_64-w64-mingw32"
- env: TOOL="arm-linux-gnueabihf"
# Install dependencies
install:
- git clone https://github.com/cooljeanius/LuaDistTools.git ~/_tools
- ~/_tools/travis/travis install
- "sudo apt-get install lua5.1 lua5.1-doc liblua5.1-0 liblua5.1-0-dbg liblua5.1-0-dev"
# Bootstap
before_script:
- ~/_tools/travis/travis bootstrap
# Build the module
script:
- "export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}"
- ~/_tools/travis/travis build || (pwd && echo "PKG_CONFIG_PATH is ${PKG_CONFIG_PATH}" && ./configure --with-pic && make)
# Execute additional tests or commands:
after_script:
- ~/_tools/travis/travis test || (test -e Makefile && make check && make distcheck)
after_failure:
- test -e config.log && cat config.log
after_success:
- test -e Makefile && make check && make distcheck
# Only watch the master branch
branches:
only:
- master
# Notify... someone(?) if needed
notifications:
email:
on_success: change
on_failure: always