1
0
mirror of https://github.com/ru-de/faq.git synced 2024-11-22 02:12:19 +00:00

skip travis commits

This commit is contained in:
Evgeniy Sokolov 2018-02-13 21:27:17 +01:00
parent de8b7f7bcd
commit ca1a9aaf5f
6 changed files with 12 additions and 9 deletions

View File

@ -11,11 +11,11 @@ git:
install:
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace:$GOPATH"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"
- sudo env PATH=$PATH GOPATH=$GOPATH sh files/check-install.sh
- sudo env PATH=$PATH GOPATH=$GOPATH bash files/check-install.sh
script:
- sh files/check.sh
- sh files/run_on_master.sh
- bash files/check.sh
- bash files/run_on_master.sh
notifications:
email: false

View File

@ -6,4 +6,4 @@ 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 sh /tmp/check-install.sh
RUN bash /tmp/check-install.sh

View File

@ -170,5 +170,5 @@ yandex
Хостелы
цій
ывро
явника
який
явника

View File

@ -7,6 +7,6 @@ services:
dockerfile: Dockerfile
container_name: ru_de_checker
user: travis
command: bash -l -c "cd /home/travis/ru-de-faq && sh files/check.sh"
command: bash -l -c "cd /home/travis/ru-de-faq && bash files/check.sh"
volumes:
- ../.:/home/travis/ru-de-faq

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
setup_git() {
git config --global user.email "travis@travis-ci.org"

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
@ -8,6 +8,9 @@ skip() {
exit 0
}
[ "${TRAVIS_COMMIT_MESSAGE}" == "${TRAVIS_COMMIT_MESSAGE/Travis build/}" ] || \
skip "Skip for travis updates."
[ "${TRAVIS_PULL_REQUEST}" = "false" ] || \
skip "Not running master-only script for pull-requests."
@ -22,7 +25,7 @@ skip() {
dict_check() {
LC_ALL=ru_RU.UTF8 sort files/dictionary.dic -C || \
(LC_ALL=ru_RU.UTF8 sort files/dictionary.dic -o files/dictionary.dic -f && sh files/push.sh)
(LC_ALL=ru_RU.UTF8 sort files/dictionary.dic -o files/dictionary.dic -f && bash files/push.sh)
}
dict_check