-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (30 loc) · 1.13 KB
/
.travis.yml
File metadata and controls
37 lines (30 loc) · 1.13 KB
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
sudo: required
before-install:
- sudo apt-get install libboost-test-dev libmarkdown2-dev doxygen graphviz doxygen-latex
language: cpp
compiler:
-gcc
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
# Go to root
- cd ..
after_success:
# Generate the docs only if master, the travis_build_docs is true and we can use secure variables
- >-
if [[ "$TRAVIS_BRANCH" = "master" && -n "$TRAVIS_BUILD_DOCS" && "$TRAVIS_PULL_REQUEST" = "false" ]] ; then
cd $TRAVIS_BUILD_DIR
source .ci/setup-ssh.sh || travis_terminate 1
.ci/generateDocumentation.sh || travis_terminate 1
fi
script:
- mkdir build
- cd build
- ${DEPS_DIR}/cmake/bin/cmake .. && make
- ./uesmann_test --run_test=basic,booleans,saveload --log_level=test_suite