From f2e966beb051900d0d73e22f63dbce0f11471f28 Mon Sep 17 00:00:00 2001 From: Matt Garnett Date: Fri, 7 Aug 2020 08:14:17 -0600 Subject: [PATCH] make eipv optional --- .travis-ci.sh | 10 ++++++++++ .travis.yml | 12 +++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.travis-ci.sh b/.travis-ci.sh index 416dc266c50fe8..38dba7da076273 100755 --- a/.travis-ci.sh +++ b/.travis-ci.sh @@ -15,6 +15,16 @@ elif [[ $TASK = 'htmlproofer-external' ]]; then bundle exec jekyll build bundle exec htmlproofer $HTMLPROOFER_OPTIONS --external_only elif [[ $TASK = 'eip-validator' ]]; then + BAD_FILES="$(ls EIPS | egrep -v "eip-[0-9]+.md|eip-20-token-standard.md")" || true + if [[ ! -z $BAD_FILES ]]; then + echo "Files found with invalid names:" + echo $BAD_FILES + exit 1 + fi + + FILES="$(ls EIPS/*.md | egrep "eip-[0-9]+.md")" + bundle exec eip_validator $FILES +elif [[ $TASK = 'eip-validator-rust' ]]; then eipv EIPS/ --ignore=title_max_length,missing_discussions_to --skip=eip-20-token-standard.md elif [[ $TASK = 'codespell' ]]; then codespell -q4 -I .codespell-whitelist eip-X.md EIPS/ diff --git a/.travis.yml b/.travis.yml index f48809a6984808..7c57aa1afe4fa7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ sudo: false # route your build to the container-based infrastructure for a faster build -language: ruby, rust +language: ruby before_install: - gem install bundler -v '< 2' @@ -27,10 +27,7 @@ matrix: env: TASK='htmlproofer' - rvm: 2.6.0 env: TASK='htmlproofer-external' - - language: rust - cache: cargo - before_script: - - cargo install eipv --version=0.0.4 + - rvm: 2.6.0 env: TASK='eip-validator' - python: 3.3 env: TASK='codespell' @@ -38,6 +35,11 @@ matrix: allow_failures: - rvm: 2.6.0 env: TASK='htmlproofer-external' + - language: rust + cache: cargo + before_script: + - cargo install eipv --version=0.0.4 + env: TASK='eip-validator-rust' notifications: webhooks: