-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (39 loc) · 1.29 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
language: c
os:
- linux
- osx
compiler:
- gcc
- clang
before_install:
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get update; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update; fi
install:
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install autoconf automake build-essential debhelper dpkg-dev autotools-dev dh-autoreconf liblua5.1-0-dev libncurses5-dev; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew install lua; fi
script:
- if [ $TRAVIS_OS_NAME == linux ]; then dpkg-buildpackage ; EC=$?; if [ ${EC} -ne 0 ] && [ ${EC} -ne 1 ]; then false; fi ; fi
- git clean -xdf
- autoreconf -vfim
- ./configure
- make
- if [ ! -z $(./heresyrl --version | grep -o dirty) ]; then echo "build directory is unclean" && git status . && git diff && false ; fi
- make check
- make distcheck
- make dist-binary
branches:
only:
- master
- release
#matrix:
# allow_failures:
# - os: osx
#deploy:
# provider: releases
# api_key:
# secure: QBPVxUTvcHBH17Fu/WJlCa+CIoR+peB45PTdWyZIBn/VfEtLlemOeCppGBdv4S5WX2C0cygKnvUwfO4J9yXnpTBJ3L2uM9asRaDXzTZ59x1VJGhbyxfZTLtjNtrEheqV+S3dhuYrpE1xbtnyKLoYx8clgnXqGW7tXIMbU7SqwxY=
# - file:
# - "heresyrl-*.tar.gz"
# skip_cleanup: true
# on:
# tags: true