Skip to content

Commit

Permalink
make eipv optional
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Aug 7, 2020
1 parent c29ed4d commit f2e966b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -27,17 +27,19 @@ 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'
before_script: "sudo pip install urllib3[secure] && sudo pip install codespell"
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:
Expand Down

0 comments on commit f2e966b

Please sign in to comment.