summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-04-12 11:08:16 +0100
committerThom May <thom@chef.io>2018-04-12 11:08:16 +0100
commitcb7f5e177683059f388545ecfa5b95e6537f9f6c (patch)
treed425c0e1c910d213e2f07f4749789c12db0b565d
parenta2fbf74d0b2123b9cc28e3baf7ca81b061036635 (diff)
downloadmixlib-authentication-tm/fix_travis.tar.gz
Update travis to modern rubies and add appveyortm/fix_travis
Signed-off-by: Thom May <thom@chef.io>
-rw-r--r--.travis.yml5
-rw-r--r--appveyor.yml41
2 files changed, 43 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index d730821..d5193e2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,9 +9,8 @@ before_install:
matrix:
include:
- - rvm: 2.1.10
- - rvm: 2.2.6
- - rvm: 2.3.3
+ - rvm: 2.5.1
+ - rvm: 2.4.4
- rvm: ruby-head
allow_failures:
- rvm: ruby-head
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..ba49675
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,41 @@
+version: "master-{build}"
+
+os: Visual Studio 2017
+platform:
+ - x64
+
+cache:
+ - vendor/bundle
+
+environment:
+ matrix:
+ - ruby_version: "25-x64"
+
+clone_depth: 1
+skip_tags: true
+skip_branch_with_pr: true
+branches:
+ only:
+ - master
+
+install:
+ - systeminfo
+ - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
+ - echo %PATH%
+ - appveyor DownloadFile http://curl.haxx.se/ca/cacert.pem -FileName C:\cacert.pem
+ - set SSL_CERT_FILE=C:\cacert.pem
+ - SET BUNDLE_WITHOUT=server:docgen:maintenance:pry:travis:integration:ci
+ - bundle config --local path vendor/bundle # use the cache we define above
+ - bundle install || bundle install || bundle install
+
+build: off
+
+before_test:
+ - ruby --version
+ - gem --version
+ - bundler --version
+ - bundle env
+
+test_script:
+ - SET SPEC_OPTS=--format progress
+ - bundle exec rake