mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 23:04:26 +00:00
remove last traces of git-lfs usage
This commit is contained in:
parent
41fa377638
commit
e46e9b12a2
@ -2,10 +2,6 @@ version: '{build}'
|
|||||||
|
|
||||||
image: Visual Studio 2015
|
image: Visual Studio 2015
|
||||||
|
|
||||||
environment:
|
|
||||||
# disable LFS file downloading during regular cloning
|
|
||||||
GIT_LFS_SKIP_SMUDGE: 1
|
|
||||||
|
|
||||||
init: # Scripts called at the very beginning
|
init: # Scripts called at the very beginning
|
||||||
# Enable paths > 260 characters
|
# Enable paths > 260 characters
|
||||||
- ps: Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
|
- ps: Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
|
||||||
@ -30,7 +26,7 @@ install:
|
|||||||
- IF "%PLATFORM%" == "x86" SET PATH=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin;%PATH%
|
- IF "%PLATFORM%" == "x86" SET PATH=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin;%PATH%
|
||||||
- IF "%PLATFORM%" == "x64" SET PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
|
- IF "%PLATFORM%" == "x64" SET PATH=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;%PATH%
|
||||||
|
|
||||||
# LFS test fixtures
|
# official test fixtures
|
||||||
- bash scripts\setup_official_tests.sh jsonTestsCache
|
- bash scripts\setup_official_tests.sh jsonTestsCache
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
@ -41,6 +37,6 @@ build_script:
|
|||||||
test_script:
|
test_script:
|
||||||
# the "go-checks" target fails in AppVeyor, for some reason; easier to disable than to debug
|
# the "go-checks" target fails in AppVeyor, for some reason; easier to disable than to debug
|
||||||
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_GO_CHECKS=1 P2PD_CACHE=p2pdCache
|
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_GO_CHECKS=1 P2PD_CACHE=p2pdCache
|
||||||
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_LFS_SCRIPT=1 DISABLE_GO_CHECKS=1 test
|
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_TEST_FIXTURES_SCRIPT=1 DISABLE_GO_CHECKS=1 test
|
||||||
|
|
||||||
deploy: off
|
deploy: off
|
||||||
|
@ -13,8 +13,6 @@ cache:
|
|||||||
git:
|
git:
|
||||||
# when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X"
|
# when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X"
|
||||||
depth: 10
|
depth: 10
|
||||||
# disable LFS file downloading during regular cloning
|
|
||||||
lfs_skip_smudge: true
|
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- "1.12.x"
|
- "1.12.x"
|
||||||
@ -50,11 +48,12 @@ matrix:
|
|||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# LFS test fixtures
|
# official test fixtures
|
||||||
- scripts/setup_official_tests.sh jsonTestsCache
|
- scripts/setup_official_tests.sh jsonTestsCache
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- set -e # fail fast
|
- set -e # fail fast
|
||||||
- make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" update # to allow a newer Nim version to be detected
|
- make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" update # to allow a newer Nim version to be detected
|
||||||
- make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}"
|
- make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}"
|
||||||
- make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" DISABLE_LFS_SCRIPT=1 test
|
- make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
||||||
|
|
||||||
|
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -1,6 +1,5 @@
|
|||||||
node('linux') {
|
node('linux') {
|
||||||
stage('Clone') {
|
stage('Clone') {
|
||||||
env.GIT_LFS_SKIP_SMUDGE = 1
|
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
6
Makefile
6
Makefile
@ -24,7 +24,7 @@ all: | build-system-checks $(TOOLS)
|
|||||||
# must be included after the default target
|
# must be included after the default target
|
||||||
-include $(BUILD_SYSTEM_DIR)/makefiles/targets.mk
|
-include $(BUILD_SYSTEM_DIR)/makefiles/targets.mk
|
||||||
|
|
||||||
GIT_SUBMODULE_UPDATE := export GIT_LFS_SKIP_SMUDGE=1; git submodule update --init --recursive
|
GIT_SUBMODULE_UPDATE := git submodule update --init --recursive
|
||||||
build-system-checks:
|
build-system-checks:
|
||||||
@[[ -e "$(BUILD_SYSTEM_DIR)/makefiles" ]] || { \
|
@[[ -e "$(BUILD_SYSTEM_DIR)/makefiles" ]] || { \
|
||||||
echo -e "'$(BUILD_SYSTEM_DIR)/makefiles' not found. Running '$(GIT_SUBMODULE_UPDATE)'.\n"; \
|
echo -e "'$(BUILD_SYSTEM_DIR)/makefiles' not found. Running '$(GIT_SUBMODULE_UPDATE)'.\n"; \
|
||||||
@ -52,9 +52,9 @@ p2pd: | go-checks
|
|||||||
|
|
||||||
# Windows 10 with WSL enabled, but no distro installed, fails if "../../nimble.sh" is executed directly
|
# Windows 10 with WSL enabled, but no distro installed, fails if "../../nimble.sh" is executed directly
|
||||||
# in a Makefile recipe but works when prefixing it with `bash`. No idea how the PATH is overridden.
|
# in a Makefile recipe but works when prefixing it with `bash`. No idea how the PATH is overridden.
|
||||||
DISABLE_LFS_SCRIPT := 0
|
DISABLE_TEST_FIXTURES_SCRIPT := 0
|
||||||
test: | build deps
|
test: | build deps
|
||||||
ifeq ($(DISABLE_LFS_SCRIPT), 0)
|
ifeq ($(DISABLE_TEST_FIXTURES_SCRIPT), 0)
|
||||||
V=$(V) scripts/setup_official_tests.sh
|
V=$(V) scripts/setup_official_tests.sh
|
||||||
endif
|
endif
|
||||||
$(ENV_SCRIPT) nim test $(NIM_PARAMS) beacon_chain.nims && rm -f 0000-*.json
|
$(ENV_SCRIPT) nim test $(NIM_PARAMS) beacon_chain.nims && rm -f 0000-*.json
|
||||||
|
@ -24,7 +24,7 @@ jobs:
|
|||||||
path: p2pdCache
|
path: p2pdCache
|
||||||
|
|
||||||
- task: CacheBeta@1
|
- task: CacheBeta@1
|
||||||
displayName: 'cache LFS JSON fixtures'
|
displayName: 'cache official test fixtures'
|
||||||
inputs:
|
inputs:
|
||||||
key: jsonTestsCache
|
key: jsonTestsCache
|
||||||
path: jsonTestsCache
|
path: jsonTestsCache
|
||||||
@ -64,12 +64,11 @@ jobs:
|
|||||||
export PATH="/c/custom/${MINGW_DIR}/bin:$PATH"
|
export PATH="/c/custom/${MINGW_DIR}/bin:$PATH"
|
||||||
echo "Fetching submodules"
|
echo "Fetching submodules"
|
||||||
git config --global core.longpaths true
|
git config --global core.longpaths true
|
||||||
export GIT_LFS_SKIP_SMUDGE=1
|
|
||||||
git submodule --quiet update --init --recursive
|
git submodule --quiet update --init --recursive
|
||||||
scripts/setup_official_tests.sh jsonTestsCache
|
scripts/setup_official_tests.sh jsonTestsCache
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} CI_CACHE=NimBinaries update
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} CI_CACHE=NimBinaries update
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} fetch-dlls
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} fetch-dlls
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} P2PD_CACHE=p2pdCache
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} P2PD_CACHE=p2pdCache
|
||||||
file build/beacon_node
|
file build/beacon_node
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} DISABLE_LFS_SCRIPT=1 test
|
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
||||||
displayName: 'build and test'
|
displayName: 'build and test'
|
||||||
|
@ -63,6 +63,3 @@ task test, "Run all tests":
|
|||||||
# State sim; getting into 4th epoch useful to trigger consensus checks
|
# State sim; getting into 4th epoch useful to trigger consensus checks
|
||||||
buildBinary "state_sim", "research/", "-r -d:release", "--validators=128 --slots=40"
|
buildBinary "state_sim", "research/", "-r -d:release", "--validators=128 --slots=40"
|
||||||
|
|
||||||
task sync_lfs_tests, "Sync LFS json tests":
|
|
||||||
# Syncs the json test files (but not the EF yaml tests)
|
|
||||||
exec "scripts/setup_official_tests.sh"
|
|
||||||
|
@ -13,7 +13,7 @@ SUBREPO_DIR="tests/official/fixtures"
|
|||||||
# verbosity level
|
# verbosity level
|
||||||
[[ -z "$V" ]] && V=0
|
[[ -z "$V" ]] && V=0
|
||||||
[[ -z "$BUILD_MSG" ]] && BUILD_MSG="Downloading official test vectors"
|
[[ -z "$BUILD_MSG" ]] && BUILD_MSG="Downloading official test vectors"
|
||||||
CACHE_DIR="$1" # optional parameter pointing to a CI cache dir. Without it, we just download the LFS files for a local `make test`.
|
CACHE_DIR="$1" # optional parameter pointing to a CI cache dir. Without it, we just download the test vectors for a local `make test`.
|
||||||
|
|
||||||
[[ -d "${SUBREPO_DIR}" ]] || { echo "This script should be run from the \"nim-beacon-chain\" repo top dir."; exit 1; }
|
[[ -d "${SUBREPO_DIR}" ]] || { echo "This script should be run from the \"nim-beacon-chain\" repo top dir."; exit 1; }
|
||||||
|
|
||||||
@ -25,10 +25,14 @@ echo -e "$BUILD_MSG"
|
|||||||
# Main()
|
# Main()
|
||||||
|
|
||||||
if [[ -n "${CACHE_DIR}" ]]; then
|
if [[ -n "${CACHE_DIR}" ]]; then
|
||||||
|
# delete old cache entries we no longer use (let this run for a month or so)
|
||||||
|
rm -f "${CACHE_DIR}"/*.tar.xz
|
||||||
|
|
||||||
# Ethereum Foundation test vectors
|
# Ethereum Foundation test vectors
|
||||||
mkdir -p "${CACHE_DIR}/tarballs"
|
mkdir -p "${CACHE_DIR}/tarballs"
|
||||||
rm -rf "${SUBREPO_DIR}/tarballs"
|
rm -rf "${SUBREPO_DIR}/tarballs"
|
||||||
ln -s "$(pwd -P)/${CACHE_DIR}/tarballs" "${SUBREPO_DIR}"
|
ln -s "$(pwd -P)/${CACHE_DIR}/tarballs" "${SUBREPO_DIR}"
|
||||||
|
# (the dir symlink above also takes care of updating the cache)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd "${SUBREPO_DIR}"
|
pushd "${SUBREPO_DIR}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user