2018-09-02 15:37:22 +00:00
|
|
|
language: c # or other C/C++ variants
|
2018-04-10 20:44:08 +00:00
|
|
|
|
2018-09-02 15:37:22 +00:00
|
|
|
sudo: false
|
2018-04-10 20:44:08 +00:00
|
|
|
|
2018-09-02 15:37:22 +00:00
|
|
|
# https://docs.travis-ci.com/user/caching/
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- nim
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
install:
|
|
|
|
# build nim from our own branch, to avoid downtime due to nim regressions
|
|
|
|
- "export NIMVER=$(git ls-remote https://github.com/status-im/nim.git HEAD | cut -f 1)"
|
|
|
|
- "{ [ -f nim/$NIMVER/bin/nim ] && [ -f nim/$NIMVER/bin/nimble ] ; } || { rm -rf 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
|
2018-04-10 20:44:08 +00:00
|
|
|
|