私は多くのことを試しましたが、最終的にはgulp-pipeline-railsのビルドに失敗しました。 script
はローカルで動作し、問題はありません。ノード5のtravis-ci rubyビルド
私が絞り込んだ最後の問題は、ノードを利用するruby
言語プロジェクトですが、I need node 5です。私はone snippetが見つかりました:
#------------------------------
# Update the node version
env:
- TRAVIS_NODE_VERSION="5"
install:
- pwd
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- npm install
これは、ノードが更新されますように見えるが、それはそれはfails to execute rspec私のルビーENVに何かを行います
$ pwd && bundle exec rake
/home/travis/build/alienfast/gulp-pipeline-rails
Could not find gem 'rspec' in any of the gem sources listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.
質問 をどのように、言ったことすべてでこの.travis.yml
でノード5を単に使用するのですか?
language: ruby
rvm:
- 2.2.2
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
cache: bundler
#------------------------------
# Setup
before_script:
- node -v
# update npm
- npm install npm -g
# install Gulp 4 CLI tools globally from 4.0 GitHub branch
- npm install https://github.com/gulpjs/gulp-cli/tarball/4.0 -g
#------------------------------
# Build
script: bundle exec rake