.travis.yml in vue_cli-rails-0.4.1 vs .travis.yml in vue_cli-rails-0.5.0
- old
+ new
@@ -3,45 +3,48 @@
language: ruby
cache:
bundler: true
yarn: true
-rvm:
- - 2.3
- - 2.4
- - 2.5
-
-env:
- - RAILS_VERSION=4.2
- - RAILS_VERSION=5.2
-
matrix:
- exclude:
+ allow_failures:
+ - env: RAILS_VERSION=pre
+ include:
+ - rvm: 2.3
+ env: RAILS_VERSION=4.2 PACKAGE_MANAGER=npm
+ - rvm: 2.3
+ env: RAILS_VERSION=5.2 PACKAGE_MANAGER=yarn
+ - rvm: 2.4
+ env: RAILS_VERSION=5.2 PACKAGE_MANAGER=npm
- rvm: 2.5
- env: RAILS_VERSION=4.2
+ env: RAILS_VERSION=5.2 PACKAGE_MANAGER=yarn
+ - rvm: 2.6
+ env: RAILS_VERSION=5.2 PACKAGE_MANAGER=npm
+ - rvm: 2.5
+ env: RAILS_VERSION=pre PACKAGE_MANAGER=npm
+ - rvm: 2.6
+ env: RAILS_VERSION=pre PACKAGE_MANAGER=yarn
gemfile:
- test/Gemfile-rails.$RAILS_VERSION
before_install:
- gem update --system
install:
- nvm install --lts
- node -v
- - yarn global add @vue/cli
- gem install rspec
-before_script:
+script:
- sh -c 'cd test && ./install.rb'
+ - sh -c 'cd test && rspec ./vcr_specs.rb'
-script:
- - sh -c 'cd test && rspec ./vcr_spec.rb'
-
jobs:
include:
- stage: gem release
rvm: 2.3
+ env: RAILS_VERSION=4.2 PACKAGE_MANAGER=yarn
script: echo "Deploying to rubygems.org ..."
deploy:
provider: rubygems
gem: vue_cli-rails
api_key: $RUBYGEMS_API_KEY