Skip to content

Commit a4431c2

Browse files
authored
More CI is better CI. Add TravisCI. (#325)
A series of commits to see a) how to use TravisCI with docker and b) how the speed compares to CircleCI. Changes also include: * Reducing merge builds in both TravisCI & Appveyor. * Update build scripts for OpenSSL & FreeTDS to do cleanup.
1 parent 364206b commit a4431c2

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
sudo: required
2+
cache: bundler
3+
services:
4+
- docker
5+
env:
6+
global:
7+
- TESTOPTS="-v"
8+
- TINYTDS_UNIT_HOST=localhost
9+
rvm:
10+
- 2.1.9
11+
- 2.2.5
12+
- 2.3.1
13+
before_install:
14+
- export PATH=/opt/local/bin:$PATH
15+
- docker info
16+
- sudo ./test/bin/setup.sh
17+
- sudo ./test/bin/install-openssl.sh
18+
- openssl version
19+
- sudo ./test/bin/install-freetds.sh
20+
- tsql -C
21+
install:
22+
- export PATH=/opt/local/bin:$PATH
23+
- gem install bundler
24+
- bundle --version
25+
- bundle install
26+
script:
27+
- bundle exec rake

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ init:
55
- SET TESTOPTS='-v'
66
clone_depth: 5
77
skip_tags: true
8+
skip_branch_with_pr: true
89
matrix:
910
fast_finish: true
1011
install:

test/bin/install-freetds.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ cd freetds-$FREETDS_VERSION
1515
--with-tdsver=7.3
1616
make
1717
make install
18+
cd ..
19+
rm -rf freetds-$FREETDS_VERSION
20+
rm freetds-$FREETDS_VERSION.tar.gz

test/bin/install-openssl.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ cd openssl-$OPENSSL_VERSION
1313
./config --prefix=/opt/local
1414
make
1515
make install
16+
cd ..
17+
rm -rf openssl-$OPENSSL_VERSION
18+
rm openssl-$OPENSSL_VERSION.tar.gz

test/bin/setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env bash
2+
3+
set -x
24
set -e
35

46
docker pull metaskills/mssql-server-linux-tinytds

0 commit comments

Comments
 (0)