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

Y
Yi Wang 已提交
4 5
if [ ${JOB} == "DOCS" ]; then
  ./build_doc.sh
Y
Yu Yang 已提交
6
elif [ ${JOB} == "PRE_COMMIT" ]; then
Y
Yi Wang 已提交
7
  ./check_style.sh
Y
Yu Yang 已提交
8
else
Y
Yi Wang 已提交
9 10
  echo "Unknown Travis CI job: ${JOB}"
  exit 0 # Don't fail due to unknown Travis CI job.
Y
Yu Yang 已提交
11
fi