main.sh 378 字节
Newer Older
Y
Yu Yang 已提交
1 2 3
#!/bin/bash
cd `dirname $0`

4 5 6 7 8
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
  # for manually installed protobuf 3.10
  export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
fi

Y
Yu Yang 已提交
9 10 11 12
if [ ${JOB} == "BUILD_AND_TEST" ]; then
  ./build_and_test.sh
elif [ ${JOB} == "DOCS" ]; then
  ./docs.sh
Y
Yu Yang 已提交
13 14
elif [ ${JOB} == "PRE_COMMIT" ]; then
  ./precommit.sh
Y
Yu Yang 已提交
15 16 17 18
else
  echo Unknown job ${JOB}
  exit 1
fi