From 69a32d0b645eeeebddfe67958130e039ad6e8725 Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Mon, 14 Jul 2025 11:17:34 +0100 Subject: [PATCH] Remove appveyor --- appveyor.yml | 44 --------------------------------------- test/appveyor/dbsetup.ps1 | 27 ------------------------ test/appveyor/dbsetup.sql | 11 ---------- 3 files changed, 82 deletions(-) delete mode 100644 appveyor.yml delete mode 100644 test/appveyor/dbsetup.ps1 delete mode 100644 test/appveyor/dbsetup.sql diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index da7123a06..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,44 +0,0 @@ -image: Visual Studio 2017 -skip_tags: true -clone_depth: 5 -build: off -matrix: - fast_finish: true - allow_failures: - - ruby_version: "27" - - ruby_version: "27-x64" - - ruby_version: "30" - - ruby_version: "30-x64" -services: - - mssql2014 - -init: - - SET PATH=C:\Ruby%ruby_version%\bin;%PATH% - - SET PATH=C:\MinGW\msys\1.0\bin;%PATH% - - SET RAKEOPT=-rdevkit - - SET TINYTDS_VERSION=2.1.3.pre - -install: - - ps: Update-AppveyorBuild -Version "$(Get-Content $env:appveyor_build_folder\VERSION).$env:appveyor_build_number" - - ruby --version - - gem --version - - bundle install - - gem uninstall bcrypt - - gem install bcrypt --platform=ruby - -test_script: - - powershell -File "%APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.ps1" - - timeout /t 4 /nobreak > NUL - - sqlcmd -S ".\SQL2014" -U sa -P Password12! -i %APPVEYOR_BUILD_FOLDER%\test\appveyor\dbsetup.sql - - bundle exec rake test ACTIVERECORD_UNITTEST_DATASERVER="localhost\SQL2014" - -environment: - CI_AZURE_HOST: - secure: VChrioaIWkf9iuuaSs4cryiA4honrADgZqNC0++begg= - CI_AZURE_PASS: - secure: cSQp8sk4urJYvq0utpsK+r7J+snJ2wpcdp8RdXJfB+w= - matrix: - - ruby_version: "27-x64" - - ruby_version: "27" - - ruby_version: "30-x64" - - ruby_version: "30" diff --git a/test/appveyor/dbsetup.ps1 b/test/appveyor/dbsetup.ps1 deleted file mode 100644 index d5d108432..000000000 --- a/test/appveyor/dbsetup.ps1 +++ /dev/null @@ -1,27 +0,0 @@ - -Write-Output "Setting up..." -[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | Out-Null -[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.SqlWmiManagement") | Out-Null - -Write-Output "Setting variables..." -$serverName = $env:COMPUTERNAME -$instanceNames = @('SQL2014') -$smo = 'Microsoft.SqlServer.Management.Smo.' -$wmi = new-object ($smo + 'Wmi.ManagedComputer') - -Write-Output "Configure Instances..." -foreach ($instanceName in $instanceNames) { - Write-Output "Instance $instanceName ..." - Write-Output "Enable TCP/IP and port 1433..." - $uri = "ManagedComputer[@Name='$serverName']/ServerInstance[@Name='$instanceName']/ServerProtocol[@Name='Tcp']" - $tcp = $wmi.GetSmoObject($uri) - $tcp.IsEnabled = $true - foreach ($ipAddress in $Tcp.IPAddresses) { - $ipAddress.IPAddressProperties["TcpDynamicPorts"].Value = "" - $ipAddress.IPAddressProperties["TcpPort"].Value = "1433" - } - $tcp.Alter() -} - -Set-Service SQLBrowser -StartupType Manual -Start-Service SQLBrowser diff --git a/test/appveyor/dbsetup.sql b/test/appveyor/dbsetup.sql deleted file mode 100644 index 1619f9e38..000000000 --- a/test/appveyor/dbsetup.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE DATABASE [activerecord_unittest]; -CREATE DATABASE [activerecord_unittest2]; -GO -CREATE LOGIN [rails] WITH PASSWORD = '', CHECK_POLICY = OFF, DEFAULT_DATABASE = [activerecord_unittest]; -GO -USE [activerecord_unittest]; -CREATE USER [rails] FOR LOGIN [rails]; -GO -EXEC sp_addrolemember N'db_owner', N'rails'; -EXEC master..sp_addsrvrolemember @loginame = N'rails', @rolename = N'sysadmin' -GO