-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
40 lines (33 loc) · 893 Bytes
/
.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
sudo: false
addons:
apt:
packages:
- doxygen
- graphviz
language: c
compiler:
- gcc
- clang
before_script:
- export LIBPREDICT_INSTALL_PATH="$PWD/libpredict-install"
- mkdir -p $LIBPREDICT_INSTALL_PATH/lib
- mkdir -p build
script:
- cd build; cmake --version
- cmake -D CMAKE_INSTALL_PREFIX=$LIBPREDICT_INSTALL_PATH ..
- make
- make test
- make install
- mkdir -p examples
- cd examples
- export COMPILER_FLAGS="-I $LIBPREDICT_INSTALL_PATH/include -L $LIBPREDICT_INSTALL_PATH/lib"
- cmake -D CMAKE_C_FLAGS="$COMPILER_FLAGS" -D CMAKE_CXX_FLAGS="$COMPILER_FLAGS" ../../examples
- make
notifications:
irc:
channels:
- "irc.oftc.net#libpredict"
use_notice: true
skip_join: true
after_success:
- $TRAVIS_BUILD_DIR/build/travis/publish-doxygen