forked from pmem/libpmemobj-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (28 loc) · 919 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
dist: trusty
sudo: required
language: cpp
services:
- docker
env:
global:
- LIBCPP_LIBDIR=/usr/local/libcxx/lib
- LIBCPP_INCDIR=/usr/local/libcxx/include/c++/v1
matrix:
- TYPE=normal OS=ubuntu OS_VER=16.04 PUSH_IMAGE=1
- TYPE=normal OS=fedora OS_VER=25 PUSH_IMAGE=1
- TYPE=normal OS=ubuntu OS_VER=16.04 COVERAGE=1
- TYPE=coverity OS=ubuntu OS_VER=16.04
before_install:
- echo $TRAVIS_COMMIT_RANGE
- export HOST_WORKDIR=`pwd`
- export GITHUB_REPO=pmem/libpmemobj-cpp
- export DOCKERHUB_REPO=pmem/libpmemobj-cpp
- cd utils/docker
- ./pull-or-rebuild-image.sh
- if [[ -f push_image_to_repo_flag ]]; then PUSH_THE_IMAGE=1; fi
- if [[ -f skip_build_package_check ]]; then export SKIP_CHECK=1; fi
- rm -f push_image_to_repo_flag skip_build_package_check
script:
- ./build.sh
after_success:
- if [[ $PUSH_THE_IMAGE -eq 1 ]]; then images/push-image.sh $OS-$OS_VER; fi