Soften scanner and update to Nim v0.18.0
This commit is contained in:
parent
78e45f0d5b
commit
07b493f066
2 changed files with 9 additions and 8 deletions
14
.travis.yml
14
.travis.yml
|
|
@ -4,18 +4,20 @@ dist: trusty
|
||||||
|
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- "$HOME/.choosenim"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- export CHOOSENIM_CHOOSE_VERSION="0.18.0"
|
||||||
- |
|
- |
|
||||||
wget http://nim-lang.org/download/nim-0.13.0.tar.xz
|
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
|
||||||
tar xf nim-0.13.0.tar.xz
|
sh init.sh -y
|
||||||
cd nim-0.13.0
|
- export PATH=$HOME/.nimble/bin:$PATH
|
||||||
sh build.sh
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- set -e
|
- set -e
|
||||||
- set -x
|
- set -x
|
||||||
- export PATH=`pwd`/nim-0.13.0/bin:$PATH
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- nim c -d:ssl -r package_scanner.nim && node ./validate_json.js
|
- nim c -d:ssl -r package_scanner.nim && node ./validate_json.js
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,8 @@ proc canFetchNimbleRepository(name: string, urlJson: JsonNode): bool =
|
||||||
try:
|
try:
|
||||||
discard getContent(url, timeout=10000)
|
discard getContent(url, timeout=10000)
|
||||||
except HttpRequestError, TimeoutError:
|
except HttpRequestError, TimeoutError:
|
||||||
echo "E: ", name, ": unable to fetch repository ", url, " ",
|
echo "W: ", name, ": unable to fetch repo ", url, " ",
|
||||||
getCurrentExceptionMsg()
|
getCurrentExceptionMsg()
|
||||||
result = false
|
|
||||||
except AssertionError:
|
except AssertionError:
|
||||||
echo "W: ", name, ": httpclient failed ", url, " ",
|
echo "W: ", name, ": httpclient failed ", url, " ",
|
||||||
getCurrentExceptionMsg()
|
getCurrentExceptionMsg()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue