From a0e6d2f7e6d19cf470db70e776d4856f54bc6af9 Mon Sep 17 00:00:00 2001 From: Prcuvu Date: Tue, 23 Jan 2018 07:45:51 +0800 Subject: [PATCH] fix(ci): call cmake under /usr/local with sudo by passing $PATH environment variable --- travis-before-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis-before-install.sh b/travis-before-install.sh index 2c05b7c1f..7e2e0c853 100755 --- a/travis-before-install.sh +++ b/travis-before-install.sh @@ -5,7 +5,7 @@ if [[ "$TRAVIS_OS_NAME" == linux ]]; then sudo apt-get install doxygen libboost-filesystem-dev libboost-locale-dev libboost-regex-dev libboost-signals-dev libboost-system-dev libgoogle-glog-dev libleveldb-dev libmarisa-dev libyaml-cpp-dev -y make thirdparty/gtest make -C thirdparty/src/opencc build - sudo make -C thirdparty/src/opencc install + sudo env "PATH=$PATH" make -C thirdparty/src/opencc install elif [[ "$TRAVIS_OS_NAME" == osx ]]; then make -f Makefile.xcode thirdparty fi