Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
dcb62b58
Commit
dcb62b58
authored
Jan 23, 2019
by
ciody
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restructure travis configuration
parent
6e3bb2c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
19 deletions
+46
-19
.travis.yml
.travis.yml
+46
-19
No files found.
.travis.yml
View file @
dcb62b58
language
:
cpp
sudo
:
required
dist
:
trusty
script
:
-
mkdir build
-
cd build
-
cmake -DPISTACHE_BUILD_EXAMPLES=true -DPISTACHE_BUILD_TESTS=true ..
-
make all test ARGS="-V"
compiler
:
-
clang
-
gcc-5
before_install
:
-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
-
sudo apt-get update -qq
-
sudo apt-get install -qq libyajl-dev libxml2-dev libxqilla-dev
-
if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-5-dev; fi
-
if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-5; fi
-
if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
branches
:
only
:
-
master
matrix
:
include
:
-
os
:
linux
compiler
:
clang
addons
:
apt
:
packages
:
[
'
clang-3.8'
,
'
libstdc++-6-dev'
]
sources
:
-
ubuntu-toolchain-r-test
-
llvm-toolchain-trusty
env
:
COMPILER='clang++-3.8' CPP14=1
install
:
-
DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
-
mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
-
|
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="http://cmake.org/files/v3.8/cmake-3.8.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}
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
which cmake || brew install cmake;
fi
before_script
:
-
export CXX=${COMPILER}
-
cd ${TRAVIS_BUILD_DIR}
# Regenerate single header file, so it is tested in the examples...
-
python scripts/generateSingleHeader.py
# Use Debug builds for building and running examples
-
cmake -H. -BBuild-Debug -DCMAKE_BUILD_TYPE=Debug -DPISTACHE_BUILD_EXAMPLES=true -DPISTACHE_BUILD_TESTS=true
# Release build
-
cmake -H. -BBuild-Release -DCMAKE_BUILD_TYPE=Release
script
:
-
# Go to debug build
-
cd Build-Debug
-
make -j 2 all test ARGS="-V"
-
# Go to release build
-
cd ../Build-Release
-
make -j
2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment