travis: cache full nim installation

This commit is contained in:
Jacek Sieka 2018-08-26 09:22:29 -06:00
parent 1bc8bb2e11
commit 87163160df
No known key found for this signature in database
GPG Key ID: 6299FEB3EB6FA465
1 changed files with 4 additions and 5 deletions

View File

@ -5,13 +5,12 @@ cache:
ccache: true
directories:
- rocksdb-5.14.2
- nim
install:
- git clone https://github.com/status-im/nim.git
- cd nim
- sh build_all.sh
- cd ..
- export PATH=$PWD/nim/bin:$PATH
- export NIMVER=$(git ls-remote git@github.com:status-im/nimbus.git HEAD | cut -f 1)
- [ -f nim/$NIMVER/bin/nim ] || { mkdir -p nim; git clone https://github.com/status-im/nim.git nim/$NIMVER; cd nim/$NIMVER; sh build_all.sh; cd ../.. ; }
- export PATH=$PWD/nim/$NIMVER/bin:$PATH
script:
- nimble install -dy && nimble test