mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 09:02:40 +00:00
Improve travis ci script
Reviewed-by: Justin M. Keyes <justinkz@gmail.com>, Nikolay Pavlov <zyx.vim@gmail.com>
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
set -eu
|
||||||
|
|
||||||
valgrind_check() {
|
valgrind_check() {
|
||||||
check_logs "$1" "valgrind-*"
|
check_logs "$1" "valgrind-*"
|
||||||
}
|
}
|
||||||
@@ -7,6 +9,7 @@ asan_check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check_logs() {
|
check_logs() {
|
||||||
|
local err=""
|
||||||
check_core_dumps
|
check_core_dumps
|
||||||
# Iterate through each log to remove an useless warning
|
# Iterate through each log to remove an useless warning
|
||||||
for log in $(find "$1" -type f -name "$2"); do
|
for log in $(find "$1" -type f -name "$2"); do
|
||||||
@@ -48,7 +51,16 @@ check_core_dumps() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setup_deps() {
|
setup_deps() {
|
||||||
|
sudo pip install --upgrade pip
|
||||||
sudo pip install neovim
|
sudo pip install neovim
|
||||||
|
|
||||||
|
# For pip3
|
||||||
|
# https://github.com/travis-ci/travis-ci/issues/1528
|
||||||
|
# sudo apt-get install -q python3.3-dev
|
||||||
|
# curl -Ss http://python-distribute.org/distribute_setup.py | sudo python3
|
||||||
|
# curl -Ss https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python3
|
||||||
|
# sudo pip3.3 install neovim
|
||||||
|
|
||||||
if [ "$BUILD_NVIM_DEPS" != "true" ]; then
|
if [ "$BUILD_NVIM_DEPS" != "true" ]; then
|
||||||
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) deps-${1}"
|
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) deps-${1}"
|
||||||
elif [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
elif [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user