Skip to content

Commit

Permalink
Travis: RVM note, extract env, cache bundler right; Appveyor: fix bui…
Browse files Browse the repository at this point in the history
…ld (#75)

* Travis: RVM note, extract env, cache bundler right

  - RVM does gem update --system on its own
  - put JRUBY_OPTS as env global
  - cache shorthand for bundler corrected

* Travis: use jruby-9.1.14.0 in CI matrix

* AppVeyor script to look more like example
  • Loading branch information
olleolleolle committed Nov 13, 2017
1 parent 78f7ef2 commit e67d4fe
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
@@ -1,9 +1,10 @@
language: ruby
cache:
- bundler
bundler: true

before_install:
- gem update --system
- gem install bundler

bundler_args: --without guard development

matrix:
Expand All @@ -12,10 +13,12 @@ matrix:
- rvm: 2.2.7
- rvm: 2.3.4
- rvm: 2.4.1
- rvm: jruby-9.1.13.0
- rvm: jruby-9.1.14.0
jdk: oraclejdk8
env:
- JRUBY_OPTS=--debug
- rvm: 2.2.7
install: true # This skips 'bundle install'
script: gem build rainbow && gem install *.gem

env:
global:
- JRUBY_OPTS=--debug
27 changes: 17 additions & 10 deletions appveyor.yml
Expand Up @@ -3,27 +3,34 @@
version: "{build}"

install:
- set PATH=C:\Ruby%ruby_version%\bin;%PATH%
- gem update --system --no-document
- gem install bundler --no-document
- bundle install --jobs 3 --retry 3 --without guard development
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- bundle config --local path vendor/bundle
- bundle install --jobs 3 --retry 3 --without guard development

build: off

cache:
- vendor/bundle

init:
- git config --global core.autocrlf true

before_test:
- ruby -v
- gem -v
- bundle -v

test_script:
- bundle exec rake

environment:
matrix:
- ruby_version: '21'
- ruby_version: 21-x64
- ruby_version: '22'
- ruby_version: 22-x64
- ruby_version: '23'
- ruby_version: 23-x64
- RUBY_VERSION: 21
- RUBY_VERSION: 21-x64
- RUBY_VERSION: 22
- RUBY_VERSION: 22-x64
- RUBY_VERSION: 23
- RUBY_VERSION: 23-x64

matrix:
fast_finish: true
Expand Down

0 comments on commit e67d4fe

Please sign in to comment.