@@ -47,6 +47,52 @@ common_build_config: &common_build_config
4747 command : |
4848 TINYTDS_UNIT_HOST=localhost bundle exec rake test
4949
50+ windows_gem_test_config : &windows_gem_test_config
51+ executor :
52+ name : win/default
53+ shell : powershell.exe
54+
55+ steps :
56+ - run : systeminfo
57+
58+ - run : pwd
59+
60+ - checkout
61+
62+ - restore_cache :
63+ name : restore gem cache
64+ keys :
65+ - v1-bundle-{{ .Branch }}-{{ checksum "tiny_tds.gemspec" }}
66+ - v1-bundle-{{ .Branch }}-
67+ - v1-bundle-
68+
69+ - run :
70+ name : install dependencies
71+ command : |
72+ bundle install --jobs=3 --retry=3 --path ./vendor/bundle
73+ bundle clean
74+
75+ - save_cache :
76+ name : save gem cache
77+ paths :
78+ - ./vendor/bundle
79+ key : v1-bundle-{{ .Branch }}-{{ checksum "tiny_tds.gemspec" }}
80+
81+ - run :
82+ name : build prereqs
83+ command : |
84+ bundle exec rake ports
85+
86+ - run :
87+ name : build gem
88+ command : |
89+ bundle exec rake build
90+
91+ - run :
92+ name : run tests
93+ command : |
94+ TINYTDS_UNIT_HOST=localhost bundle exec rake test
95+
5096jobs :
5197 ruby_27 :
5298 << : *common_build_config
@@ -63,43 +109,8 @@ jobs:
63109 docker :
64110 - image : veracross/circleci-ruby-freetds:2.5.3
65111 - image : metaskills/mssql-server-linux-tinytds:2017-GA
66- windows_test :
67- executor :
68- name : win/default
69- shell : powershell.exe
70- steps :
71- - run : systeminfo
72-
73- - checkout
74-
75- - restore_cache :
76- name : restore gem cache
77- keys :
78- - v1-bundle-{{ .Branch }}-{{ checksum "tiny_tds.gemspec" }}
79- - v1-bundle-{{ .Branch }}-
80- - v1-bundle-
81-
82- - run :
83- name : install dependencies
84- command : |
85- bundle install --jobs=3 --retry=3 --path ./vendor/bundle
86- bundle clean
87-
88- - save_cache :
89- name : save gem cache
90- paths :
91- - ./vendor/bundle
92- key : v1-bundle-{{ .Branch }}-{{ checksum "tiny_tds.gemspec" }}
93-
94- - run :
95- name : build gem
96- command : |
97- bundle exec rake gem:windows
98-
99- - run :
100- name : run tests
101- command : |
102- TINYTDS_UNIT_HOST=localhost bundle exec rake test
112+ test_windows_ruby_25 :
113+ << : *windows_gem_test_config
103114
104115workflows :
105116 version : 2
@@ -109,3 +120,17 @@ workflows:
109120 # - ruby_26
110121 # - ruby_25
111122 - windows_test
123+
124+
125+
126+
127+
128+ # - run:
129+ # name: "Check docker"
130+ # shell: powershell.exe
131+ # command: |
132+ # docker info
133+ # - run:
134+ # name: run sql server image
135+ # command: |
136+ # docker run -d -p 1433:1433 -e sa_password=<SA_PASSWORD> -e ACCEPT_EULA=Y microsoft/mssql-server-windows-developer
0 commit comments