forked from UnitexGramLab/unitex-core-tests
/
.travis.yml
85 lines (75 loc) · 3.51 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
# add by martinec
# =============================================================================
# based on:
# https://github.com/mapbox/protozero/blob/master/.travis.yml
# https://github.com/dftlibs/xcfun/blob/master/.travis.yml
# https://github.com/clMathLibraries/clBLAS/blob/master/.travis.yml
# https://github.com/Automattic/_s/blob/master/.travis.yml
# =============================================================================
# - To install the Travis CI command line client, which requires
# Ruby 1.9.3 and RubyGems, type:
# $ gem install travis --no-rdoc --no-ri
# - To run the command line lint tool, type:
# $ travis lint
# =============================================================================
# language: instructs travis what compilers && environment to set up in build matrix
language: cpp
# sudo: false instructs Travis to build our project in a docker VM (faster)
sudo: required
# only available on private builds
cache:
- apt
# Travis CI clones repositories to a depth of 50 commits
git:
depth: 3
# Save common build configurations as shortcuts, so we can reference them later.
addons_shortcuts:
addons_clang35: &clang35
apt:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
packages: [ 'clang-3.5', 'cmake', 'cppcheck', 'valgrind' ]
addons_gcc48: &gcc48
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'g++-4.8', 'gcc-4.8', 'cmake', 'cppcheck', 'valgrind' ]
matrix:
# if a rows in the build matrix fails, set
# the build to finish as soon as possible
fast_finish: true
include:
- os: linux
dist: trusty
compiler: "clang"
env: CXX=clang++-3.5
addons: *clang35
- os: linux
dist: trusty
compiler: "gcc"
env: CXX=g++-4.8
addons: *gcc48
- os: osx
compiler: clang
allow_failures:
- os: osx
notifications:
email:
recipients:
- unitex-devel@univ-mlv.fr
on_success: change
on_failure: always
slack:
secure: UvrwS8TG+pXKsgJGP2OouOpLGcf0ZsbgZzdUsGbfW+5WFl5/AZW6wxJg60jpHMgOcwoX74vvb0mpBOFNuV5Zck6ISBa3W4qSQeqmIJ+v7pzNNC1rEUGhictKX1Jo1MCRMN7Q0B+V5ZiWU6yVBljTo2PvhkeF27ethPyQpTyV3U88y45iX5mQP8+ZUaHdpBhxzN3x+9XzUTAV/ugrCrTJs315hXVhXpyaDFk4hE1nsRVCXyazX4JkHaCPau3hpdrtTF8Xpadu/u1MzaDFBZAgGUSvcV9rkJ6JpgyLlBFT/yyY7uqJ245LM4nfp/+SgS6p3eEEkbck+2x+dtS7OMSVGyZ4IwsWYU7TdAAnvy1u73TXCKkeYx6MbUEdI4wCJu5KUv8fJ4DJWsOc4RPCd36FGyNo8CfzJ4G8qaSaQr1U2xbPGPAebvrnEq2D/BgzY4/4BqHWBQCSctWCAfbehIPkjEy6JM+LDERJW85kTF5O4jUM0syyPmqWEsMfmZ6wQywQyGTA2BT4kTeDvS/ybiFqooOo03CF5K97S/ZdnOlXhFQLik3EVJwgq+k7rFkCXD/M63nwFdYV/59zBWy+xuFIUW8LDtZCssxZ9Wo8D3/PzPEb4nRECJ0Cmvs/tLKjw4ATrHrjKfxDyW55V6xFzg8DmZBhdQd+Puut8ZIoDRziGaI=
before_install:
# workaround for an issue related with the default export of the CC environment variable on Travis
# https://github.com/travis-ci/travis-ci/issues/4682
# https://github.com/travis-ci/docs-travis-ci-com/commit/fbca7ce4
- test -n $CC && unset CC
- git clone -b master --depth 1 https://github.com/UnitexGramLab/unitex-core && cd unitex-core && export UNITEX_CORE_VERSION_GIT_COMMIT_HASH=$(git describe --always HEAD) && mkdir -p bin && cd build && make ADDITIONAL_CFLAG+=-DUNITEX_CORE_VERSION_GIT_COMMIT_HASH=${UNITEX_CORE_VERSION_GIT_COMMIT_HASH} DEBUG=yes UNITEXTOOLLOGGERONLY=yes && cd .. && export UNITEX_BIN="$PWD/bin/UnitexToolLogger" && cd ..
- echo ${UNITEX_BIN}
- echo ${UNITEX_CORE_VERSION_GIT_COMMIT_HASH}
install:
- "./shellcheck-install.sh"
# overwrite the default build step
script:
- "./shellcheck-check.sh"
- "./unitex-core-test.sh -w80 -p1"