Skip to content

Commit a0e6d2f

Browse files
committed
fix(ci): call cmake under /usr/local with sudo by passing $PATH environment variable
1 parent 19ddc1e commit a0e6d2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

travis-before-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [[ "$TRAVIS_OS_NAME" == linux ]]; then
55
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
66
make thirdparty/gtest
77
make -C thirdparty/src/opencc build
8-
sudo make -C thirdparty/src/opencc install
8+
sudo env "PATH=$PATH" make -C thirdparty/src/opencc install
99
elif [[ "$TRAVIS_OS_NAME" == osx ]]; then
1010
make -f Makefile.xcode thirdparty
1111
fi

0 commit comments

Comments
 (0)