Skip to content

Commit

Permalink
fix(ci): call cmake under /usr/local with sudo by passing $PATH envir…
Browse files Browse the repository at this point in the history
…onment variable
  • Loading branch information
Prcuvu committed Jan 22, 2018
1 parent 19ddc1e commit a0e6d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travis-before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a0e6d2f

Please sign in to comment.