diff options
| -rw-r--r-- | .travis.yml | 42 | ||||
| -rw-r--r-- | nimterop/globals.nim | 2 | ||||
| -rw-r--r-- | nimterop/lisp.nim | 4 |
3 files changed, 27 insertions, 21 deletions
diff --git a/.travis.yml b/.travis.yml index ca42600..60eabe7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,25 +1,31 @@ -sudo: false -language: c os: - linux - osx -dist: trusty -before_script: - - curl -u $TOKEN -o latest.json --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest - - export RELEASE=`cat latest.json | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'` - - export TXZ=`cat latest.json | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux | tail -n 1` - - export VERSION=`echo $TXZ | cut -d"-" -f 2,2` - - echo "RELEASE = $RELEASE, TXZ = $TXZ, VERSION = $VERSION" - - curl -L --silent -o $TXZ "https://github.com/nim-lang/nightlies/releases/download/$RELEASE/$TXZ" - - tar xf $TXZ - - cd nim-$VERSION - - sh build.sh - - bin/nim c koch - - ./koch boot -d:release - - ./koch nimble - - export PATH=$(pwd)/bin:~/.nimble/bin:$PATH - - cd .. +language: c + +env: + # test against both stable & devel + - BRANCH=stable + - BRANCH=devel + +cache: + directories: + - "$HOME/.nimble" + - "$HOME/.choosenim" + +matrix: + allow_failures: + - env: BRANCH=devel + fast_finish: true + +install: + - export CHOOSENIM_CHOOSE_VERSION=$BRANCH + - | + curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh + sh init.sh -y + - export PATH=$HOME/.nimble/bin:$PATH + - nimble refresh -y script: - nimble installWithDeps diff --git a/nimterop/globals.nim b/nimterop/globals.nim index ae3d03b..8797af8 100644 --- a/nimterop/globals.nim +++ b/nimterop/globals.nim @@ -14,7 +14,7 @@ type Ast* = object sym*: Sym - start*, stop*: uint32 + start*, stop*: int parent*: ref Ast children*: seq[ref Ast] diff --git a/nimterop/lisp.nim b/nimterop/lisp.nim index 36c810a..44d609f 100644 --- a/nimterop/lisp.nim +++ b/nimterop/lisp.nim @@ -41,8 +41,8 @@ proc readFromTokens(): ref Ast = result.sym = parseEnum[Sym](gTokens[idx+1]) except: result.sym = IGNORED - result.start = gTokens[idx+2].parseInt().uint32 - result.stop = gTokens[idx+3].parseInt().uint32 + result.start = gTokens[idx+2].parseInt() + result.stop = gTokens[idx+3].parseInt() result.children = @[] idx += 4 while gTokens[idx] != ")": |
