mirror of
https://github.com/ru-de/faq.git
synced 2024-11-26 04:12:18 +00:00
Travis #911: sync github pages
This commit is contained in:
parent
a31069ebf2
commit
83dee3d24f
@ -1,9 +1,10 @@
|
||||
# check https://docs.travis-ci.com/user/common-build-problems/#Running-a-Container-Based-Docker-Image-Locally
|
||||
# check https://docs.travis-ci.com/user/common-build-problems/#troubleshooting-locally-in-a-docker-image
|
||||
FROM travisci/ci-garnet:packer-1512502276-986baf0
|
||||
MAINTAINER Evgenii Sokolov <e.sokolov@sevensenders.com>
|
||||
|
||||
USER travis
|
||||
ENV GOPATH "/home/travis/gopath"
|
||||
ENV GOROOT "/home/travis/.gimme/versions/go1.7.4.linux.amd64"
|
||||
ENV PATH "$GOPATH/bin:$GOROOT/bin:$PATH"
|
||||
COPY check-install.sh /tmp
|
||||
RUN bash /tmp/check-install.sh
|
||||
COPY . $GOPATH/src/github.com/ru-de/faq/files
|
||||
RUN cd $GOPATH/src/github.com/ru-de/faq && sudo env PATH=$PATH GOPATH=$GOPATH bash files/check-install.sh
|
||||
|
@ -29,6 +29,12 @@ for dic in $dicList
|
||||
cat /usr/share/hunspell/$dic.aff | iconv --from ISO8859-1 --to UTF-8 | sed 's/SET ISO8859-1/SET UTF-8/' > /usr/share/hunspell/$dic-utf8.aff
|
||||
done
|
||||
|
||||
(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
|
||||
mv /tmp/dictionary.* /usr/share/hunspell
|
||||
|
||||
go get ./...
|
||||
go get -u github.com/ewgRa/ci-utils/cmd/diff_liner
|
||||
go get -u github.com/ewgRa/ci-utils/cmd/hunspell_parser
|
||||
@ -37,9 +43,3 @@ go get -u github.com/ewgRa/ci-utils/cmd/github_comments_send
|
||||
|
||||
go build -o /tmp/check_spell $DIR/go/check_spell/main.go
|
||||
go build -o /tmp/check_links $DIR/go/check_links/main.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
|
||||
|
Loading…
Reference in New Issue
Block a user