From becd3dee74a7567c20db44654e74df765bef17e2 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 26 Sep 2019 13:45:59 +0100 Subject: [PATCH] ci(jenkins): remove support to appveyor --- .appveyor.yml | 28 ----------------- test/script/appveyor/install-cassandra.ps1 | 23 -------------- .../script/appveyor/install-elasticsearch.ps1 | 31 ------------------- test/script/appveyor/install-redis.ps1 | 21 ------------- 4 files changed, 103 deletions(-) delete mode 100644 .appveyor.yml delete mode 100755 test/script/appveyor/install-cassandra.ps1 delete mode 100755 test/script/appveyor/install-elasticsearch.ps1 delete mode 100755 test/script/appveyor/install-redis.ps1 diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 2355eb74da..0000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,28 +0,0 @@ -environment: - PGUSER: "postgres" - PGPASSWORD: "Password12!" - MYSQL_PASSWORD: "Password12!" - -# Install scripts runs after repo cloning -install: - - ps: .\test\script\appveyor\install-redis.ps1 - - ps: .\test\script\appveyor\install-elasticsearch.ps1 - - ps: .\test\script\appveyor\install-cassandra.ps1 - - ps: Install-Product node 10 # Latest LTS - - npm install - -# Services are started after all install scripts have run -services: - - mysql - - mongodb - - postgresql - - mssql2017 - -# Post-install test scripts -test_script: - - node --version - - npm --version - - node test/test.js - -# Don't actually build -build: off diff --git a/test/script/appveyor/install-cassandra.ps1 b/test/script/appveyor/install-cassandra.ps1 deleted file mode 100755 index 76f5730a82..0000000000 --- a/test/script/appveyor/install-cassandra.ps1 +++ /dev/null @@ -1,23 +0,0 @@ -# Abort with non zero exit code on errors -$ErrorActionPreference = "Stop" - -Write-Host "Preparing to download and install Cassandra..." -ForegroundColor Cyan -$cassandraVersion = "3.11.3" -$downloadUrl = "http://archive.apache.org/dist/cassandra/$cassandraVersion/apache-cassandra-$cassandraVersion-bin.tar.gz" -$extractRoot = "$env:USERPROFILE" -$tgzPath = "$extractRoot\cassandra.tar.gz" -$tarPath = "$extractRoot\cassandra.tar" -$cassandra = "$extractRoot\apache-cassandra-$cassandraVersion\bin\cassandra.bat" - -Write-Host "Downloading Cassandra..." -ForegroundColor Cyan -(New-Object Net.WebClient).DownloadFile($downloadUrl, $tgzPath) - -Write-Host "Extracting Cassandra..." -7z e $tgzPath -tgzip -y -o"$extractRoot" | Out-Null -7z x $tarPath -ttar -r -aou -o"$extractRoot" | Out-Null -del $tgzPath - -Write-Host "Starting Cassandra..." -Start-Process $cassandra -PassThru - -Write-Host "Cassandra $cassandraVersion running" -ForegroundColor Green diff --git a/test/script/appveyor/install-elasticsearch.ps1 b/test/script/appveyor/install-elasticsearch.ps1 deleted file mode 100755 index b66f51da56..0000000000 --- a/test/script/appveyor/install-elasticsearch.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -# Abort with non zero exit code on errors -$ErrorActionPreference = "Stop" - -Write-Host "Preparing to download and install Elasticsearch..." -ForegroundColor Cyan -$esVersion = "7.3.2" -$downloadUrl = "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$($esVersion)-windows-x86_64.zip" -$zipPath = "$($env:USERPROFILE)\elasticsearch-$esVersion.zip" -$extractRoot = "$env:SYSTEMDRIVE\Elasticsearch" -$esRoot = "$extractRoot\elasticsearch-$esVersion" -[Environment]::SetEnvironmentVariable("JAVA_HOME",$null,"User") -Write-Host "Environment..." -ForegroundColor Cyan -Get-ChildItem Env: | Sort Name | Format-Table -Wrap -AutoSize - -Write-Host "Downloading Elasticsearch..." -(New-Object Net.WebClient).DownloadFile($downloadUrl, $zipPath) -7z x $zipPath -y -o"$extractRoot" | Out-Null -del $zipPath -Get-ChildItem $esRoot | where {$_.Attributes -match'Directory'} - -Write-Host "Installing Elasticsearch as a Windows service..." -& "$esRoot\bin\elasticsearch-service.bat" install - -Write-Host "Starting Elasticsearch service..." -& "$esRoot\bin\elasticsearch-service.bat" start - -do { - Write-Host "Waiting for Elasticsearch service to bootstrap..." - sleep 1 -} until(Test-NetConnection localhost -Port 9200 | ? { $_.TcpTestSucceeded } ) - -Write-Host "Elasticsearch installed" -ForegroundColor Green diff --git a/test/script/appveyor/install-redis.ps1 b/test/script/appveyor/install-redis.ps1 deleted file mode 100755 index bc2a15cfdb..0000000000 --- a/test/script/appveyor/install-redis.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -# Abort with non zero exit code on errors -$ErrorActionPreference = "Stop" - -Write-Host "Preparing to download and install Redis..." -ForegroundColor Cyan -$redisVersion = "2.8.19" -$redisRoot = "$env:SYSTEMDRIVE\Redis" -$zipPath = "$($env:USERPROFILE)\redis-$redisVersion.zip" -$downloadUrl = "https://github.com/MSOpenTech/redis/releases/download/win-$redisVersion/redis-$redisVersion.zip" - -Write-Host "Downloading Redis..." -ForegroundColor Cyan -(New-Object Net.WebClient).DownloadFile($downloadUrl, $zipPath) -7z x $zipPath -y -o"$redisRoot" | Out-Null -del $zipPath - -Write-Host "Installing Redis as a Windows service..." -& "$redisRoot\redis-server.exe" --service-install - -Write-Host "Starting Redis service..." -& "$redisRoot\redis-server.exe" --service-start - -Write-Host "Redis installed" -ForegroundColor Green