From f2bcf35949e98853781af32aca8302f1bf5c7da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Thu, 28 Mar 2019 19:36:37 +0100 Subject: [PATCH 1/2] Nimbus CI: add nim-beacon-chain tests We need to make sure that bumping Git submodules doesn't break nim-beacon-chain here, since this is the recommeded setup for using that repo. --- .appveyor.yml | 1 + .travis.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index 09fba1b92..8fa399232 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -30,6 +30,7 @@ test_script: - build\nimbus.exe --help - mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% V=0 NIMFLAGS="-d:release" test - IF "%PLATFORM%" == "x64" mingw32-make -j2 test-reproducibility + - mingw32-make -C vendor/nim-beacon-chain -j2 V=0 test deploy: off diff --git a/.travis.yml b/.travis.yml index e1d8f345b..d651eca68 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,4 +37,5 @@ script: - ./build/nimbus --help - make -j${NPROC} V=0 NIMFLAGS="-d:release" test - make -j${NPROC} V=0 test-reproducibility + - make -C vendor/nim-beacon-chain -j${NPROC} V=0 test From 63d95c3145518577a594b9c1c19012c2ae9ffb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Thu, 28 Mar 2019 21:28:36 +0100 Subject: [PATCH 2/2] - disable native Windows paths - remove nim-beacon-chain CI test on Windows (not yet supported) --- .appveyor.yml | 1 - env.sh | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 8fa399232..09fba1b92 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -30,7 +30,6 @@ test_script: - build\nimbus.exe --help - mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% V=0 NIMFLAGS="-d:release" test - IF "%PLATFORM%" == "x64" mingw32-make -j2 test-reproducibility - - mingw32-make -C vendor/nim-beacon-chain -j2 V=0 test deploy: off diff --git a/env.sh b/env.sh index 688c30304..d3888ad19 100755 --- a/env.sh +++ b/env.sh @@ -5,13 +5,16 @@ PWD_CMD="pwd" uname | grep -qi mingw && PWD_CMD="pwd -W" rel_path="$(dirname $0)" -abs_path="$(cd $rel_path; ${PWD_CMD})" +abs_path="$(cd $rel_path; pwd)" +# do we still need this? +abs_path_native="$(cd $rel_path; ${PWD_CMD})" # used by libp2p/go-libp2p-daemon export GOPATH="${abs_path}/vendor/go" export GO111MODULE=on -# make it an absolute path, so we can call this script from other dirs +#- make it an absolute path, so we can call this script from other dirs +#- we can't use native Windows paths in here, because colons can't be escaped in PATH export PATH="${abs_path}/vendor/Nim/bin:${GOPATH}/bin:${PATH}" # Nimble needs this to be an absolute path