remove AppVeyor, Travis, and Azure CI pipeline definitions (#3535)
This commit is contained in:
parent
4a237cb908
commit
e7d017b50c
|
@ -1,38 +0,0 @@
|
||||||
version: '{build}'
|
|
||||||
|
|
||||||
image: Visual Studio 2015
|
|
||||||
|
|
||||||
init: # Scripts called at the very beginning
|
|
||||||
# Enable paths > 260 characters
|
|
||||||
- ps: Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
|
|
||||||
- git config --global core.longpaths true
|
|
||||||
|
|
||||||
cache:
|
|
||||||
- NimBinaries
|
|
||||||
- jsonTestsCache
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
# We always want 32 and 64-bit compilation
|
|
||||||
fast_finish: false
|
|
||||||
|
|
||||||
platform:
|
|
||||||
- x64
|
|
||||||
- x86
|
|
||||||
|
|
||||||
install:
|
|
||||||
# use the newest versions documented here: https://www.appveyor.com/docs/windows-images-software/#mingw-msys-cygwin
|
|
||||||
- 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%
|
|
||||||
|
|
||||||
# spec test fixtures
|
|
||||||
- bash scripts\setup_scenarios.sh jsonTestsCache
|
|
||||||
|
|
||||||
build_script:
|
|
||||||
# the 32-bit build is done on a 64-bit image, so we need to override the architecture
|
|
||||||
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% CI_CACHE=NimBinaries update
|
|
||||||
|
|
||||||
test_script:
|
|
||||||
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% LOG_LEVEL=TRACE
|
|
||||||
- mingw32-make -j2 ARCH_OVERRIDE=%PLATFORM% DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
|
||||||
|
|
||||||
deploy: off
|
|
59
.travis.yml
59
.travis.yml
|
@ -1,59 +0,0 @@
|
||||||
language: c
|
|
||||||
|
|
||||||
dist: bionic
|
|
||||||
|
|
||||||
# https://docs.travis-ci.com/user/caching/
|
|
||||||
cache:
|
|
||||||
ccache: true
|
|
||||||
directories:
|
|
||||||
- vendor/nimbus-build-system/vendor/Nim/bin
|
|
||||||
- jsonTestsCache
|
|
||||||
|
|
||||||
git:
|
|
||||||
# when multiple CI builds are queued, the tested commit needs to be in the last X commits cloned with "--depth X"
|
|
||||||
depth: 10
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
# Due to Travis new pricing we want to dedicate the resources we have
|
|
||||||
# for ARM64 testing, hence Linux/Mac on AMD are commented out
|
|
||||||
# https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
|
|
||||||
#
|
|
||||||
# - os: linux
|
|
||||||
# arch: amd64
|
|
||||||
# sudo: required
|
|
||||||
# env:
|
|
||||||
# - NPROC=2
|
|
||||||
# before_install:
|
|
||||||
# - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
|
||||||
# - os: osx
|
|
||||||
# before_install:
|
|
||||||
# - HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 brew install ccache
|
|
||||||
# env:
|
|
||||||
# - NPROC=2
|
|
||||||
- dist: bionic
|
|
||||||
arch: arm64
|
|
||||||
sudo: required
|
|
||||||
env:
|
|
||||||
- NPROC=6 # Worth trying more than 2 parallel jobs: https://travis-ci.community/t/no-cache-support-on-arm64/5416/8
|
|
||||||
# (also used to get a different cache key than the amd64 one)
|
|
||||||
before_install:
|
|
||||||
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
|
||||||
- sudo apt-get -q update
|
|
||||||
- sudo apt-get install -y libpcre3-dev
|
|
||||||
|
|
||||||
#allow_failures:
|
|
||||||
## ARM64 is a bit buggy: https://travis-ci.community/t/no-output-has-been-received-and-then-build-terminated-on-arm64/8834
|
|
||||||
#- arch: arm64
|
|
||||||
|
|
||||||
|
|
||||||
install:
|
|
||||||
# spec test fixtures
|
|
||||||
- scripts/setup_scenarios.sh jsonTestsCache
|
|
||||||
|
|
||||||
script:
|
|
||||||
- set -e # fail fast
|
|
||||||
# Building Nim-1.0.4 takes up to 10 minutes on Travis - the time limit after which jobs are cancelled for having no output
|
|
||||||
- make -j${NPROC} NIMFLAGS="--parallelBuild:2" V=1 update # to allow a newer Nim version to be detected
|
|
||||||
- make -j${NPROC} NIMFLAGS="--parallelBuild:2" LOG_LEVEL=TRACE
|
|
||||||
- make -j${NPROC} NIMFLAGS="--parallelBuild:2" DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
|
|
@ -1,73 +0,0 @@
|
||||||
jobs:
|
|
||||||
- job: Windows
|
|
||||||
|
|
||||||
timeoutInMinutes: 100
|
|
||||||
|
|
||||||
pool:
|
|
||||||
vmImage: windows-latest
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
32-bit:
|
|
||||||
PLATFORM: x86
|
|
||||||
64-bit:
|
|
||||||
PLATFORM: x64
|
|
||||||
steps:
|
|
||||||
- task: CacheBeta@1
|
|
||||||
displayName: 'cache Nim binaries'
|
|
||||||
inputs:
|
|
||||||
key: NimBinaries | $(Agent.OS) | $(PLATFORM) | "$(Build.SourceBranchName)" | "v8"
|
|
||||||
path: NimBinaries
|
|
||||||
|
|
||||||
- task: CacheBeta@1
|
|
||||||
displayName: 'cache scenario test fixtures'
|
|
||||||
inputs:
|
|
||||||
key: jsonTestsCacheV1
|
|
||||||
path: jsonTestsCache
|
|
||||||
|
|
||||||
- task: CacheBeta@1
|
|
||||||
displayName: 'cache MinGW-w64'
|
|
||||||
inputs:
|
|
||||||
key: mingwCache | 8_1_0 | $(PLATFORM)
|
|
||||||
path: mingwCache
|
|
||||||
|
|
||||||
- powershell: |
|
|
||||||
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1
|
|
||||||
displayName: 'long path support'
|
|
||||||
|
|
||||||
- bash: |
|
|
||||||
set -e
|
|
||||||
# https://developercommunity.visualstudio.com/content/problem/891929/windows-2019-cygheap-base-mismatch-detected-git-ba.html
|
|
||||||
export PATH="/mingw64/bin:/usr/bin:$PATH"
|
|
||||||
echo "Installing MinGW-w64"
|
|
||||||
if [[ $PLATFORM == "x86" ]]; then
|
|
||||||
MINGW_FILE="i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z"
|
|
||||||
MINGW_URL="https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-posix/dwarf/${MINGW_FILE}"
|
|
||||||
MINGW_DIR="mingw32"
|
|
||||||
else
|
|
||||||
MINGW_FILE="x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z"
|
|
||||||
MINGW_URL="https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/${MINGW_FILE}"
|
|
||||||
MINGW_DIR="mingw64"
|
|
||||||
fi
|
|
||||||
mkdir -p mingwCache
|
|
||||||
cd mingwCache
|
|
||||||
if [[ ! -e "$MINGW_FILE" ]]; then
|
|
||||||
rm -f *.7z
|
|
||||||
curl -OLsS "$MINGW_URL"
|
|
||||||
fi
|
|
||||||
7z x -y -bd "$MINGW_FILE" >/dev/null
|
|
||||||
mkdir -p /c/custom
|
|
||||||
mv "$MINGW_DIR" /c/custom/
|
|
||||||
cd ..
|
|
||||||
export PATH="/c/custom/${MINGW_DIR}/bin:$PATH"
|
|
||||||
git config --global core.longpaths true
|
|
||||||
git config --global core.autocrlf false
|
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} CI_CACHE=NimBinaries update
|
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} LOG_LEVEL=TRACE
|
|
||||||
file build/nimbus_beacon_node
|
|
||||||
# fail fast
|
|
||||||
export NIMTEST_ABORT_ON_ERROR=1
|
|
||||||
scripts/setup_scenarios.sh jsonTestsCache
|
|
||||||
mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} DISABLE_TEST_FIXTURES_SCRIPT=1 test
|
|
||||||
displayName: 'build and test'
|
|
||||||
|
|
Loading…
Reference in New Issue