.travis.yml
language: ruby
rvm:
- "2.2"
- "2.1"
- "2.0"
- "1.9"
bundler_args: "--without debug --jobs 3"
sudo: false
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=YES
script:
- bundle exec rake spec spec_all_without_fakefs
# shell access test
- bundle exec rake build
- gem install pkg/social_snippet-*.gem
- export SOCIAL_SNIPPET_HOME=$HOME/.social-snippet-test
- export SOCIAL_SNIPPET_DEBUG=true
- sspm install example-repo#1.0.0
- echo "// @snip <example-repo:func.cpp>" | ssnip
- sspm update
- echo "// @snip <example-repo:func.cpp>" | ssnip
- unset SOCIAL_SNIPPET_HOME
- unset SOCIAL_SNIPPET_DEBUG
deploy:
provider: rubygems
api_key:
master:
secure: "hlC3/Vsqpw3RdA0g8nAuusXEpGiwLtndGQVd8eg8x7yCoubFmsruwJG2Cci4QF2aIVGovFzrrmlxPb204nndsmBCzTLZEnn2dsCqOt8TZDAyFRZf6xeZ53eT7AjOJvFIafS4YLQ975upzsQ/cW4OgWFRaqhHgckTUSapa7Dyeao="
gem:
master: social_snippet
on:
repo: social-snippet/social-snippet
ruby: "2.2"
cache:
bundler: true
directories:
- node_modules
- bower_components