From 277c49d34cec8f78b018f17cad52c42297889314 Mon Sep 17 00:00:00 2001 From: Evgeniy Sokolov Date: Sat, 5 May 2018 21:25:28 +0200 Subject: [PATCH] fix build --- files/check-install.sh | 15 ++++++++------- files/check.sh | 6 ------ files/{check_links.go => go/check_links/main.go} | 0 files/{check_spell.go => go/check_spell/main.go} | 0 4 files changed, 8 insertions(+), 13 deletions(-) rename files/{check_links.go => go/check_links/main.go} (100%) rename files/{check_spell.go => go/check_spell/main.go} (100%) diff --git a/files/check-install.sh b/files/check-install.sh index 93f70fa..ec2571b 100644 --- a/files/check-install.sh +++ b/files/check-install.sh @@ -2,6 +2,8 @@ set -xe +DIR=`dirname $0` + apt-get -yqq update && apt-get install -y hunspell hunspell-ru hunspell-en-us hunspell-de-de curl -s https://extensions.libreoffice.org/extensions/russian-spellcheck-dictionary.-based-on-works-of-aot-group > .dict_page cat .dict_page | grep -oP " .current_release @@ -33,12 +35,11 @@ go get -u github.com/ewgRa/ci-utils/utils/hunspell_parser go get -u github.com/ewgRa/ci-utils/utils/github_comments_diff go get -u github.com/ewgRa/ci-utils/utils/github_comments_send -mkdir $GOPATH/ci-scripts/check_spell -cp $DIR/check_spell.go $GOPATH/ci-scripts/check_spell/check_spell.go -go build -o /tmp/check_spell $GOPATH/ci-scripts/check_spell/check_spell.go +go build -o /tmp/check_spell $DIR/go/check_spell/main.go +go build -o /tmp/check_links $DIR/go/check_links/main.go -mkdir $GOPATH/ci-scripts/check_links -cp $DIR/check_links.go $GOPATH/ci-scripts/check_links/check_links.go - -go build -o /tmp/check_links $GOPATH/ci-scripts/check_links/check_links.go +(cat $DIR/dictionary.dic; echo) | sed '/^$/d' | wc -l > /tmp/dictionary.dic +(cat $DIR/dictionary.dic; echo) | sed '/^$/d' >> /tmp/dictionary.dic +echo "SET UTF-8" >> /tmp/dictionary.aff +sudo mv /tmp/dictionary.* /usr/share/hunspell diff --git a/files/check.sh b/files/check.sh index 64a5ecb..9333d29 100644 --- a/files/check.sh +++ b/files/check.sh @@ -4,12 +4,6 @@ DIR=`dirname $0` git config --global core.quotepath false -(cat $DIR/dictionary.dic; echo) | sed '/^$/d' | wc -l > /tmp/dictionary.dic -(cat $DIR/dictionary.dic; echo) | sed '/^$/d' >> /tmp/dictionary.dic - -echo "SET UTF-8" >> /tmp/dictionary.aff -sudo mv /tmp/dictionary.* /usr/share/hunspell - git diff HEAD^ --name-status | grep "^D" -v | sed 's/^.\t//g' | grep "\.md$" > /tmp/changed_files curl -sH "Accept: application/vnd.github.v3.diff.json" https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST > /tmp/pr.diff diff --git a/files/check_links.go b/files/go/check_links/main.go similarity index 100% rename from files/check_links.go rename to files/go/check_links/main.go diff --git a/files/check_spell.go b/files/go/check_spell/main.go similarity index 100% rename from files/check_spell.go rename to files/go/check_spell/main.go