main
Islam AbdelRahman 9 years ago
parent a23c6052c8
commit 91f0f1f5ef
  1. 8
      .travis.yml

@ -2,6 +2,10 @@ sudo: false
language: cpp
matrix:
- JOB_NAME=unittests
- JOB_NAME=jtest
- JOB_NAME=lite_build
include:
- os: linux
compiler: clang
@ -34,7 +38,9 @@ before_script:
# as EnvPosixTest::AllocateTest expects within the Travis OpenVZ environment.
script:
- if [[ "${TRAVIS_OS_NAME}" == 'linux' ]]; then OPT=-DTRAVIS CLANG_FORMAT_DIFF=/tmp/clang-format-diff.py make format || true; fi
- OPT=-DTRAVIS V=1 make -j4 check && OPT=-DTRAVIS V=1 make clean jclean rocksdbjava jtest && make clean && OPT="-DTRAVIS -DROCKSDB_LITE" V=1 make -j4 static_lib
- if [[ "${JOB_NAME}" == 'unittests' ]]; then OPT=-DTRAVIS V=1 make -j4 check; fi
- if [[ "${JOB_NAME}" == 'jtest' ]]; then OPT=-DTRAVIS V=1 make clean jclean rocksdbjava jtest; fi
- if [[ "${JOB_NAME}" == 'lite_build' ]]; then OPT="-DTRAVIS -DROCKSDB_LITE" V=1 make -j4 static_lib; fi
notifications:
email:

Loading…
Cancel
Save