Files
nairobi/.travis.yml
ArturT 27f46c9239 Allow forked version of repo to run tests with knapsack_pro gem without
needed API key KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC.

Based on:
https://github.com/KnapsackPro/knapsack_pro-ruby#how-to-make-knapsack_pr
o-works-for-forked-repositories-of-my-project
2017-12-05 20:10:40 +01:00

20 lines
448 B
YAML

language: ruby
addons:
postgresql: "9.4"
rvm:
- "2.3.2"
cache: bundler
bundler_args: --without development
before_script:
- "for i in config/*.example; do cp \"$i\" \"${i/.example}\"; done"
- bundle exec rake db:setup
script:
- "bundle exec rake assets:precompile RAILS_ENV=test"
- "bin/knapsack_pro_rspec"
env:
global:
- KNAPSACK_PRO_CI_NODE_TOTAL=2
matrix:
- KNAPSACK_PRO_CI_NODE_INDEX=0
- KNAPSACK_PRO_CI_NODE_INDEX=1