tiny_tds 3.2.1 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/tiny_tds/gem.rb CHANGED
@@ -1,5 +1,3 @@
1
- require "rbconfig"
2
-
3
1
  module TinyTds
4
2
  module Gem
5
3
  class << self
@@ -11,12 +9,14 @@ module TinyTds
11
9
  File.join(root_path, "ports")
12
10
  end
13
11
 
14
- def ports_bin_paths
15
- Dir.glob(File.join(ports_root_path, "**", "bin"))
12
+ def ports_bin_and_lib_paths
13
+ Dir.glob(File.join(ports_root_path, "#{gem_platform.cpu}-#{gem_platform.os}*", "{bin,lib}"))
16
14
  end
17
15
 
18
- def ports_lib_paths
19
- Dir.glob(File.join(ports_root_path, "**", "lib"))
16
+ private
17
+
18
+ def gem_platform
19
+ ::Gem::Platform.local
20
20
  end
21
21
  end
22
22
  end
data/lib/tiny_tds.rb CHANGED
@@ -10,8 +10,7 @@ require "tiny_tds/gem"
10
10
  module TinyTds
11
11
  # Is this file part of a fat binary gem with bundled freetds?
12
12
  # This path must be enabled by add_dll_directory on Windows.
13
- gplat = ::Gem::Platform.local
14
- FREETDS_LIB_PATH = Dir[File.expand_path("../ports/#{gplat.cpu}-#{gplat.os}*/{bin,lib}", __dir__)].first
13
+ FREETDS_LIB_PATH = TinyTds::Gem.ports_bin_and_lib_paths.first
15
14
 
16
15
  add_dll_path = proc do |path, &block|
17
16
  if RUBY_PLATFORM =~ /(mswin|mingw)/i && path
@@ -7,7 +7,7 @@ CrossLibraries.each do |xlib|
7
7
 
8
8
  RakeCompilerDock.sh <<-EOT, platform: platform
9
9
  bundle install &&
10
- rake native:#{platform} pkg/#{SPEC.full_name}-#{platform}.gem MAKEOPTS=-j`nproc` RUBY_CC_VERSION=#{RakeCompilerDock.set_ruby_cc_version("~> 2.7", "~> 3.0")} MAKEFLAGS="V=1"
10
+ rake native:#{platform} pkg/#{SPEC.full_name}-#{platform}.gem MAKEOPTS=-j`nproc` RUBY_CC_VERSION=#{RakeCompilerDock.set_ruby_cc_version("~> 3.0", "~> 4.0")} MAKEFLAGS="V=1"
11
11
  EOT
12
12
  end
13
13
 
@@ -4,7 +4,13 @@ $gemToUnpack = "./tiny_tds-$gemVersion-$env:RUBY_ARCHITECTURE.gem"
4
4
  Write-Host "Looking to unpack $gemToUnpack"
5
5
  gem unpack --target ./tmp "$gemToUnpack"
6
6
 
7
- # Restore precompiled code
7
+ # Restore precompiled code (Gem code)
8
8
  $source = (Resolve-Path ".\tmp\tiny_tds-$gemVersion-$env:RUBY_ARCHITECTURE\lib\tiny_tds").Path
9
9
  $destination = (Resolve-Path ".\lib\tiny_tds").Path
10
10
  Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)}
11
+
12
+ # Restore precompiled code (ports)
13
+ $source = (Resolve-Path ".\tmp\tiny_tds-$gemVersion-$env:RUBY_ARCHITECTURE\ports").Path
14
+ New-Item -ItemType Directory -Path ".\ports" -Force
15
+ $destination = (Resolve-Path ".\ports").Path
16
+ Get-ChildItem $source -Recurse -Exclude "*.rb" | Copy-Item -Destination {Join-Path $destination $_.FullName.Substring($source.length)}
data/test/gem_test.rb CHANGED
@@ -7,11 +7,9 @@ class GemTest < Minitest::Spec
7
7
  describe TinyTds::Gem do
8
8
  # We're going to muck with some system globals so lets make sure
9
9
  # they get set back later
10
- original_platform = RbConfig::CONFIG["arch"]
11
10
  original_pwd = Dir.pwd
12
11
 
13
12
  after do
14
- RbConfig::CONFIG["arch"] = original_platform
15
13
  Dir.chdir original_pwd
16
14
  end
17
15
 
@@ -43,56 +41,53 @@ class GemTest < Minitest::Spec
43
41
  end
44
42
  end
45
43
 
46
- describe "#ports_bin_paths" do
47
- let(:ports_bin_paths) { TinyTds::Gem.ports_bin_paths }
44
+ describe "#ports_bin_and_lib_paths" do
45
+ let(:ports_bin_and_lib_paths) { TinyTds::Gem.ports_bin_and_lib_paths }
48
46
 
49
47
  describe "when the ports directories exist" do
50
- let(:fake_bin_paths) do
51
- ports_host_root = File.join(gem_root, "ports", "fake-host-with-dirs")
52
- [
53
- File.join("a", "bin"),
54
- File.join("a", "inner", "bin"),
55
- File.join("b", "bin")
56
- ].map do |p|
48
+ let(:fake_bin_and_lib_path) do
49
+ ports_host_root = File.join(gem_root, "ports", "x86_64-unknown")
50
+ ["bin", "lib"].map do |p|
57
51
  File.join(ports_host_root, p)
58
52
  end
59
53
  end
60
54
 
61
55
  before do
62
- RbConfig::CONFIG["arch"] = "fake-host-with-dirs"
63
- fake_bin_paths.each do |path|
56
+ fake_bin_and_lib_path.each do |path|
64
57
  FileUtils.mkdir_p(path)
65
58
  end
66
59
  end
67
60
 
68
61
  after do
69
62
  FileUtils.remove_entry_secure(
70
- File.join(gem_root, "ports", "fake-host-with-dirs"), true
63
+ File.join(gem_root, "ports", "x86_64-unknown"), true
71
64
  )
72
65
  end
73
66
 
74
67
  it "should return all the bin directories" do
75
- _(ports_bin_paths.sort).must_equal fake_bin_paths.sort
76
- end
68
+ fake_platform = Gem::Platform.new("x86_64-unknown")
69
+
70
+ Gem::Platform.stub(:local, fake_platform) do
71
+ _(ports_bin_and_lib_paths.sort).must_equal fake_bin_and_lib_path.sort
77
72
 
78
- it "should return all the bin directories regardless of cwd" do
79
- Dir.chdir "/"
80
- _(ports_bin_paths.sort).must_equal fake_bin_paths.sort
73
+ # should return the same regardless of path
74
+ Dir.chdir "/"
75
+ _(ports_bin_and_lib_paths.sort).must_equal fake_bin_and_lib_path.sort
76
+ end
81
77
  end
82
78
  end
83
79
 
84
80
  describe "when the ports directories are missing" do
85
- before do
86
- RbConfig::CONFIG["arch"] = "fake-host-without-dirs"
87
- end
88
-
89
81
  it "should return no directories" do
90
- _(ports_bin_paths).must_be_empty
91
- end
82
+ fake_platform = Gem::Platform.new("x86_64-unknown")
92
83
 
93
- it "should return no directories regardless of cwd" do
94
- Dir.chdir "/"
95
- _(ports_bin_paths).must_be_empty
84
+ Gem::Platform.stub(:local, fake_platform) do
85
+ _(ports_bin_and_lib_paths).must_be_empty
86
+
87
+ # should be empty regardless of path
88
+ Dir.chdir "/"
89
+ _(ports_bin_and_lib_paths).must_be_empty
90
+ end
96
91
  end
97
92
  end
98
93
  end
data/test/thread_test.rb CHANGED
@@ -1,12 +1,9 @@
1
1
  require "test_helper"
2
- require "logger"
3
2
  require "benchmark"
4
3
 
5
4
  class ThreadTest < TinyTds::TestCase
6
5
  describe "Threaded SELECT queries" do
7
6
  before do
8
- @logger = Logger.new $stdout
9
- @logger.level = Logger::WARN
10
7
  @poolsize = 4
11
8
  @numthreads = 10
12
9
  @query = "waitfor delay '00:00:01'"
@@ -22,19 +19,14 @@ class ThreadTest < TinyTds::TestCase
22
19
  x = Benchmark.realtime do
23
20
  threads = []
24
21
  @numthreads.times do |i|
25
- start = Time.new
26
22
  threads << Thread.new do
27
- ts = Time.new
28
23
  @pool.with { |c| c.execute(@query).do }
29
- te = Time.new
30
- @logger.info "Thread #{i} finished in #{te - ts} thread seconds, #{te - start} real seconds"
31
24
  end
32
25
  end
33
26
  threads.each { |t| t.join }
34
27
  end
35
28
  assert x < @numthreads, "#{x} is not faster than #{@numthreads} seconds"
36
29
  mintime = (1.0 * @numthreads / @poolsize).ceil
37
- @logger.info "#{@numthreads} queries on #{@poolsize} threads: #{x} sec. Minimum time: #{mintime} sec."
38
30
  assert x > mintime, "#{x} is not slower than #{mintime} seconds"
39
31
  end
40
32
 
@@ -65,7 +57,7 @@ class ThreadTest < TinyTds::TestCase
65
57
  result = client.execute "waitfor delay '00:00:#{delay}'; select db_name()"
66
58
  result.each { |r| puts r }
67
59
  rescue TinyTds::Error => e
68
- if e.message == "Adaptive Server connection timed out"
60
+ if e.message.include?("connection timed out")
69
61
  exception = true
70
62
  end
71
63
  end
data/tiny_tds.gemspec CHANGED
@@ -1,9 +1,9 @@
1
1
  $LOAD_PATH.push File.expand_path("../lib", __FILE__)
2
- require "tiny_tds/version"
2
+ version = File.read(File.expand_path("VERSION", __dir__)).strip
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "tiny_tds"
6
- s.version = TinyTds::VERSION
6
+ s.version = version
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Ken Collins", "Erik Bryn", "Will Bond"]
9
9
  s.email = ["ken@metaskills.net", "will@wbond.net"]
@@ -18,14 +18,17 @@ Gem::Specification.new do |s|
18
18
  s.license = "MIT"
19
19
  s.required_ruby_version = ">= 2.7.0"
20
20
  s.metadata["msys2_mingw_dependencies"] = "freetds"
21
- s.add_dependency "bigdecimal", "~> 3"
21
+ s.add_dependency "bigdecimal", ">= 2.0.0"
22
22
  s.add_development_dependency "mini_portile2", "~> 2.8.0"
23
- s.add_development_dependency "rake", "~> 13.0.0"
23
+ s.add_development_dependency "rake", "~> 13.2.0"
24
24
  s.add_development_dependency "rake-compiler", "~> 1.2"
25
- s.add_development_dependency "rake-compiler-dock", "~> 1.9.1"
25
+ s.add_development_dependency "rake-compiler-dock", "~> 1.11.0"
26
26
  s.add_development_dependency "minitest", "~> 5.25"
27
27
  s.add_development_dependency "minitest-reporters", "~> 1.6.1"
28
28
  s.add_development_dependency "connection_pool", "~> 2.2.0"
29
29
  s.add_development_dependency "toxiproxy", "~> 2.0.0"
30
30
  s.add_development_dependency "standard", "~> 1.31.0"
31
+ # ostruct can be dropped when updating to Rubocop 1.65+
32
+ s.add_development_dependency "ostruct"
33
+ s.add_development_dependency "benchmark"
31
34
  end
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_tds
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  - Erik Bryn
9
9
  - Will Bond
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-04-10 00:00:00.000000000 Z
13
+ date: 2026-01-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bigdecimal
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '3'
21
+ version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - "~>"
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '3'
28
+ version: 2.0.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: mini_portile2
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -46,14 +46,14 @@ dependencies:
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: 13.0.0
49
+ version: 13.2.0
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
- version: 13.0.0
56
+ version: 13.2.0
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rake-compiler
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -74,14 +74,14 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: 1.9.1
77
+ version: 1.11.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
- version: 1.9.1
84
+ version: 1.11.0
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: minitest
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -152,6 +152,34 @@ dependencies:
152
152
  - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: 1.31.0
155
+ - !ruby/object:Gem::Dependency
156
+ name: ostruct
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ type: :development
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: '0'
169
+ - !ruby/object:Gem::Dependency
170
+ name: benchmark
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ type: :development
177
+ prerelease: false
178
+ version_requirements: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
155
183
  description: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.
156
184
  Developed for the ActiveRecord SQL Server adapter.
157
185
  email:
@@ -165,6 +193,10 @@ extensions:
165
193
  extra_rdoc_files: []
166
194
  files:
167
195
  - ".codeclimate.yml"
196
+ - ".devcontainer/Dockerfile"
197
+ - ".devcontainer/boot.sh"
198
+ - ".devcontainer/compose.yaml"
199
+ - ".devcontainer/devcontainer.json"
168
200
  - ".gitattributes"
169
201
  - ".github/workflows/ci.yml"
170
202
  - ".gitignore"
@@ -177,9 +209,9 @@ files:
177
209
  - README.md
178
210
  - Rakefile
179
211
  - VERSION
212
+ - astyle.conf
180
213
  - bin/defncopy-ttds
181
214
  - bin/tsql-ttds
182
- - docker-compose.yml
183
215
  - exe/.keep
184
216
  - ext/tiny_tds/client.c
185
217
  - ext/tiny_tds/client.h
@@ -199,19 +231,12 @@ files:
199
231
  - patches/freetds/1.00.27/0001-mingw_missing_inet_pton.diff
200
232
  - patches/freetds/1.00.27/0002-Don-t-use-MSYS2-file-libws2_32.diff
201
233
  - patches/libiconv/1.14/1-avoid-gets-error.patch
202
- - setup_cimgruby_dev.sh
203
- - start_dev.sh
204
234
  - tasks/native_gem.rake
205
235
  - tasks/package.rake
206
236
  - tasks/ports.rake
207
237
  - tasks/test.rake
208
238
  - test/bin/install-freetds.sh
209
- - test/bin/install-mssql.ps1
210
- - test/bin/install-mssqltools.sh
211
- - test/bin/install-openssl.sh
212
239
  - test/bin/restore-from-native-gem.ps1
213
- - test/bin/setup_tinytds_db.sh
214
- - test/bin/setup_volume_permissions.sh
215
240
  - test/client_test.rb
216
241
  - test/gem_test.rb
217
242
  - test/result_test.rb
@@ -229,7 +254,7 @@ licenses:
229
254
  - MIT
230
255
  metadata:
231
256
  msys2_mingw_dependencies: freetds
232
- post_install_message:
257
+ post_install_message:
233
258
  rdoc_options:
234
259
  - "--charset=UTF-8"
235
260
  require_paths:
@@ -246,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
271
  version: '0'
247
272
  requirements: []
248
273
  rubygems_version: 3.1.6
249
- signing_key:
274
+ signing_key:
250
275
  specification_version: 4
251
276
  summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.
252
277
  test_files: []
data/docker-compose.yml DELETED
@@ -1,34 +0,0 @@
1
- version: '3'
2
-
3
- networks:
4
- main-network:
5
-
6
- services:
7
- mssql:
8
- image: mcr.microsoft.com/mssql/server:${MSSQL_VERSION:-2017}-latest
9
- container_name: sqlserver
10
- environment:
11
- ACCEPT_EULA: Y
12
- MSSQL_SA_PASSWORD: super01S3cUr3
13
- ports:
14
- - "1433:1433"
15
- network_mode: "host"
16
-
17
- toxiproxy:
18
- image: shopify/toxiproxy
19
- container_name: toxiproxy
20
- command: '/toxiproxy -host=127.0.0.1'
21
- network_mode: "host"
22
-
23
- cimgruby:
24
- image: "cimg/ruby:${RUBY_VERSION:-2.7}"
25
- container_name: cimg_ruby
26
- environment:
27
- TESTOPTS: '-v'
28
- TINYTDS_UNIT_HOST: '127.0.0.1'
29
- SA_PASSWORD: super01S3cUr3
30
- TOXIPROXY_HOST: '127.0.0.1'
31
- command: tail -F anything
32
- volumes:
33
- - .:/home/circleci/project
34
- network_mode: "host"
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -x
4
- set -e
5
-
6
- # this should mirror the steps outlined in the circleci yml
7
- echo "Installing mssql-tools..."
8
- sleep 5
9
- sudo -E ./test/bin/install-mssqltools.sh
10
-
11
- echo "Configurating tinytds test database..."
12
- sleep 5
13
- ./test/bin/setup_tinytds_db.sh
14
-
15
- echo "Building openssl library..."
16
- sleep 5
17
- sudo -E ./test/bin/install-openssl.sh
18
-
19
- echo "Building freetds library..."
20
- sleep 5
21
- sudo -E ./test/bin/install-freetds.sh
22
-
23
- echo "Installing gems..."
24
- sleep 5
25
- bundle install
data/start_dev.sh DELETED
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -x
4
- set -e
5
-
6
- # set volume read/write permissions to work both outside and inside container
7
- sudo ./test/bin/setup_volume_permissions.sh
8
-
9
- docker-compose up -d
10
- echo "Waiting for containers to start..."
11
- sleep 10
12
-
13
- # setup circleci ruby container for development
14
- docker exec cimg_ruby bash -c './setup_cimgruby_dev.sh'
15
-
16
- # enter container
17
- set +x
18
- echo "cimg/ruby container is ready for tiny_tds development.........."
19
- echo "To enter container run: docker exec -it cimg_ruby /bin/bash"
20
- echo "To build solution run: docker exec cimg_ruby bash -c 'bundle exec rake build'"
21
- echo "To test solution run: docker exec cimg_ruby bash -c 'bundle exec rake test'"
@@ -1,42 +0,0 @@
1
- param ([int] $Version)
2
-
3
- $ProgressPreference = 'SilentlyContinue'
4
-
5
- $DownloadLinkTable = @{
6
- 2017 = "https://go.microsoft.com/fwlink/?linkid=829176";
7
- 2019 = "https://download.microsoft.com/download/7/c/1/7c14e92e-bdcb-4f89-b7cf-93543e7112d1/SQLEXPR_x64_ENU.exe";
8
- 2022 = "https://download.microsoft.com/download/3/8/d/38de7036-2433-4207-8eae-06e247e17b25/SQLEXPR_x64_ENU.exe";
9
- }
10
-
11
- $MajorVersionTable = @{
12
- 2017 = 14;
13
- 2019 = 15;
14
- 2022 = 16;
15
- }
16
-
17
- if (-not(Test-path "C:\Downloads")) {
18
- mkdir "C:\Downloads"
19
- }
20
-
21
- $sqlInstallationFile = "C:\Downloads\sqlexpress.exe"
22
- if (-not(Test-path $sqlInstallationFile -PathType leaf)) {
23
- Write-Host "Downloading SQL Express ..."
24
- Invoke-WebRequest -Uri $DownloadLinkTable[$Version] -OutFile "C:\Downloads\sqlexpress.exe"
25
- }
26
-
27
- Write-Host "Installing SQL Express ..."
28
- Start-Process -Wait -FilePath "C:\Downloads\sqlexpress.exe" -ArgumentList /qs, /x:"C:\Downloads\setup"
29
- C:\Downloads\setup\setup.exe /q /ACTION=Install /INSTANCENAME=SQLEXPRESS /FEATURES=SQLEngine /UPDATEENABLED=0 /SQLSVCACCOUNT='NT AUTHORITY\System' /SQLSYSADMINACCOUNTS='BUILTIN\ADMINISTRATORS' /TCPENABLED=1 /NPENABLED=0 /IACCEPTSQLSERVERLICENSETERMS
30
-
31
- Write-Host "Configuring SQL Express ..."
32
- stop-service MSSQL`$SQLEXPRESS
33
- set-itemproperty -path "HKLM:\software\microsoft\microsoft sql server\mssql$($MajorVersionTable[$Version]).SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall" -name tcpdynamicports -value ''
34
- set-itemproperty -path "HKLM:\software\microsoft\microsoft sql server\mssql$($MajorVersionTable[$Version]).SQLEXPRESS\mssqlserver\supersocketnetlib\tcp\ipall" -name tcpport -value 1433
35
- set-itemproperty -path "HKLM:\software\microsoft\microsoft sql server\mssql$($MajorVersionTable[$Version]).SQLEXPRESS\mssqlserver\" -name LoginMode -value 2
36
-
37
- Write-Host "Starting SQL Express ..."
38
- start-service MSSQL`$SQLEXPRESS
39
-
40
- Write-Host "Configuring MSSQL for TinyTDS ..."
41
- & sqlcmd -i './test/sql/db-create.sql'
42
- & sqlcmd -i './test/sql/db-login.sql'
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -x
4
- set -e
5
-
6
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
7
- curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
8
- sudo apt-get update
9
- sudo ACCEPT_EULA=Y apt-get -y install mssql-tools unixodbc-dev
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -x
4
- set -e
5
-
6
- if [ -z "$OPENSSL_VERSION" ]; then
7
- OPENSSL_VERSION=$(ruby -r "./ext/tiny_tds/extconsts.rb" -e "puts OPENSSL_VERSION")
8
- fi
9
-
10
- wget https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz
11
- tar -xzf openssl-$OPENSSL_VERSION.tar.gz
12
- cd openssl-$OPENSSL_VERSION
13
- ./config --prefix=/opt/local --openssldir=/opt/local
14
- make
15
- make install_sw install_ssldirs
16
- cd ..
17
- rm -rf openssl-$OPENSSL_VERSION
18
- rm openssl-$OPENSSL_VERSION.tar.gz
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -x
4
- set -e
5
-
6
- /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -i ./test/sql/db-create.sql
7
- /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -i ./test/sql/db-login.sql
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -x
4
-
5
- sudo groupadd -g 3434 circleci_tinytds
6
- sudo usermod -a -G circleci_tinytds $USER
7
- sudo useradd circleci_tinytds -u 3434 -g 3434
8
- sudo usermod -a -G circleci_tinytds circleci_tinytds
9
- sudo chgrp -R circleci_tinytds .
10
- sudo chmod -R g+rwx .