Skip to content

Commit

Permalink
More CI is better CI. Add TravisCI. (#325)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
metaskills committed Dec 19, 2016
1 parent 364206b commit a4431c2
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
sudo: required
cache: bundler
services:
- docker
env:
global:
- TESTOPTS="-v"
- TINYTDS_UNIT_HOST=localhost
rvm:
- 2.1.9
- 2.2.5
- 2.3.1
before_install:
- export PATH=/opt/local/bin:$PATH
- docker info
- sudo ./test/bin/setup.sh
- sudo ./test/bin/install-openssl.sh
- openssl version
- sudo ./test/bin/install-freetds.sh
- tsql -C
install:
- export PATH=/opt/local/bin:$PATH
- gem install bundler
- bundle --version
- bundle install
script:
- bundle exec rake
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ init:
- SET TESTOPTS='-v'
clone_depth: 5
skip_tags: true
skip_branch_with_pr: true
matrix:
fast_finish: true
install:
Expand Down
3 changes: 3 additions & 0 deletions test/bin/install-freetds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ cd freetds-$FREETDS_VERSION
--with-tdsver=7.3
make
make install
cd ..
rm -rf freetds-$FREETDS_VERSION
rm freetds-$FREETDS_VERSION.tar.gz
3 changes: 3 additions & 0 deletions test/bin/install-openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ cd openssl-$OPENSSL_VERSION
./config --prefix=/opt/local
make
make install
cd ..
rm -rf openssl-$OPENSSL_VERSION
rm openssl-$OPENSSL_VERSION.tar.gz
2 changes: 2 additions & 0 deletions test/bin/setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash

set -x
set -e

docker pull metaskills/mssql-server-linux-tinytds
Expand Down

0 comments on commit a4431c2

Please sign in to comment.