Skip to content

Commit f29b122

Browse files
authored
Test CircleCI w/same OpenSSL & FreeTDS versions.
* Uses /opt/local directory.
1 parent ed691ff commit f29b122

File tree

5 files changed

+39
-10
lines changed

5 files changed

+39
-10
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Fix `use_utf16` optoin for booleans. Fixes #314
44
* Add `-q` check for bin puts. Fixes #318
5+
* Use FreeTDS 1.00.21.
56
* Appveyor tests only 2012, 2014 with one Ruby, 23-x64.
67
* CircleCI tests 2016.
78

circle.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ general:
55

66
machine:
77
environment:
8+
PATH: /opt/local/bin:${PATH}
89
TESTOPTS: -v
910
TINYTDS_UNIT_HOST: localhost
1011
services:
@@ -15,11 +16,14 @@ dependencies:
1516
- rvm-exec 2.1.9 bundle install
1617
- rvm-exec 2.2.5 bundle install
1718
- rvm-exec 2.3.1 bundle install
18-
post:
19-
- docker info
19+
- sudo ./test/bin/install-openssl.sh
20+
- openssl version
21+
- sudo ./test/bin/install-freetds.sh
22+
- tsql -C
2023

2124
database:
2225
post:
26+
- docker info
2327
- ./test/bin/setup.sh
2428

2529
test:

test/bin/install-freetds-1.00.21.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/bin/install-freetds.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
set -x
4+
set -e
5+
6+
if [ -z "$FREETDS_VERSION" ]; then
7+
FREETDS_VERSION=$(ruby -r "./ext/tiny_tds/extconsts.rb" -e "puts FREETDS_VERSION")
8+
fi
9+
10+
wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-$FREETDS_VERSION.tar.gz
11+
tar -xzf freetds-$FREETDS_VERSION.tar.gz
12+
cd freetds-$FREETDS_VERSION
13+
./configure --prefix=/opt/local \
14+
--with-openssl=/opt/local \
15+
--with-tdsver=7.3
16+
make
17+
make install

test/bin/install-openssl.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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
14+
make
15+
make install

0 commit comments

Comments
 (0)