mirror of
https://github.com/logos-messaging/packages.git
synced 2026-01-05 23:53:08 +00:00
Soften scanner and update to Nim v0.18.0
This commit is contained in:
parent
78e45f0d5b
commit
07b493f066
14
.travis.yml
14
.travis.yml
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user