Soften scanner and update to Nim v0.18.0

This commit is contained in:
Dominik Picheta 2018-07-04 10:45:26 +01:00
parent 78e45f0d5b
commit 07b493f066
2 changed files with 9 additions and 8 deletions

View File

@ -4,18 +4,20 @@ dist: trusty
language: c
cache:
directories:
- "$HOME/.choosenim"
install:
- export CHOOSENIM_CHOOSE_VERSION="0.18.0"
- |
wget http://nim-lang.org/download/nim-0.13.0.tar.xz
tar xf nim-0.13.0.tar.xz
cd nim-0.13.0
sh build.sh
cd ..
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
sh init.sh -y
- export PATH=$HOME/.nimble/bin:$PATH
before_script:
- set -e
- set -x
- export PATH=`pwd`/nim-0.13.0/bin:$PATH
script:
- nim c -d:ssl -r package_scanner.nim && node ./validate_json.js

View File

@ -63,9 +63,8 @@ proc canFetchNimbleRepository(name: string, urlJson: JsonNode): bool =
try:
discard getContent(url, timeout=10000)
except HttpRequestError, TimeoutError:
echo "E: ", name, ": unable to fetch repository ", url, " ",
echo "W: ", name, ": unable to fetch repo ", url, " ",
getCurrentExceptionMsg()
result = false
except AssertionError:
echo "W: ", name, ": httpclient failed ", url, " ",
getCurrentExceptionMsg()