forked from EIPStackGroup/OpENer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (41 loc) · 1.63 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
# This will run on Travis' 'new' container-based infrastructure
sudo: false
os: linux
dist: precise
language: c
# Blacklist
branches:
except:
- gh-pages
# Environment variables
env:
global:
- GH_REPO_NAME: OpENer
- DOXYFILE: opener.doxyfile
- GH_REPO_REF: github.com/EIPStackGroup/OpENer.git
- secure: "h1vuX5cGZd5W7f5TitD+EamJIsvG2qq8aBpO9MUGIOj3bShwTaR0S0qbcpCyltXiZ9DJklLc7kP5kB0XtX1o6vZMelQsqBjiHQK5yFW0vHmFAg1sLMpVBbsAN0lMWgeGJEmyRstA1KYBixwExtc5GpcgMBvS/mnJQ10zboZNcRU="
# Install dependencies
addons:
apt:
packages:
- doxygen
- doxygen-doc
- doxygen-latex
- doxygen-gui
- graphviz
#Prepare CppUTest from source, as package is not available
before_script:
- cd $TRAVIS_BUILD_DIR/source
- chmod +x $TRAVIS_BUILD_DIR/travis_scripts/installCppUTestDependency.sh
- $TRAVIS_BUILD_DIR/travis_scripts/installCppUTestDependency.sh
# Build your code e.g. by calling make
script:
- cd $TRAVIS_BUILD_DIR/bin/posix
- cmake -DOpENer_PLATFORM:STRING="POSIX" -DCMAKE_BUILD_TYPE:STRING="" -DOpENer_64_BIT_DATA_TYPES_ENABLED:BOOL=ON -DOpENer_TESTS:BOOL=ON -DCPPUTEST_HOME:PATH=$TRAVIS_BUILD_DIR/source/dependencies/cpputest -DCPPUTEST_LIBRARY:FILEPATH=$TRAVIS_BUILD_DIR/source/dependencies/cpputest/src/CppUTest/libCppUTest.a -DCPPUTESTEXT_LIBRARY:FILEPATH=$TRAVIS_BUILD_DIR/source/dependencies/cpputest/src/CppUTestExt/libCppUTestExt.a ../../source
- make
- make test
# Generate and deploy documentation
after_success:
- cd $TRAVIS_BUILD_DIR/source
- chmod +x $TRAVIS_BUILD_DIR/travis_scripts/generateDocumentationAndDeploy.sh
- $TRAVIS_BUILD_DIR/travis_scripts/generateDocumentationAndDeploy.sh