forked from rubendv/sodiumpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (20 loc) · 834 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
sudo: required
dist: trusty
language: cpp
services: docker
notifications:
recipients: [email protected]
email:
on_success: change
on_failure: always
matrix:
include:
- os: linux
env: BUILD_TYPE=Release
before_install:
- docker pull berkus/docker-cpp-ci:latest
script:
- mkdir _build_
- docker run --rm -v $PWD:/repo -v ~/.travis:/travis berkus/docker-cpp-ci /bin/sh -c "cd /repo/_build_ && CC=clang CXX=clang++ cmake -G Ninja -DTRAVIS_CI=YES -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSODIUMPP_STATIC=OFF -DSODIUMPP_TEST=ON -DSODIUMPP_EXAMPLE=ON .. && cmake --build ."
- docker run --rm -v $PWD:/repo -v ~/.travis:/travis berkus/docker-cpp-ci /bin/sh -c "/repo/_build_/tests --reporter=spec"
- docker run --rm -v $PWD:/repo -v ~/.travis:/travis berkus/docker-cpp-ci /bin/sh -c "/repo/_build_/example"