Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (63 sloc) 1.76 KB
addons:
apt:
packages:
- chef
- git
- graphviz
- libarchive12
- libarchive-dev
- libgecode-dev
sources:
- chef-stable-precise
cache:
- apt
- bundler
dist: precise
env:
global: USE_SYSTEM_GECODE=1
language: ruby
notifications:
irc:
channels:
- "irc.freenode.org#berkshelf"
skip_join: true
use_notice: true
webhooks:
urls:
- "https://webhooks.gitter.im/e/cdd41ff6c4d1f062c2f1"
branches:
only:
- master
bundler_args: --without guard changelog --jobs 7
before_install:
# RubyGems 2.6.2 and bundler 1.11.2 have an incompatibility that occurs when
# using some gem APIs. See: https://github.com/bundler/bundler/issues/4368
- gem update --system 2.6.1
- gem install bundler
before_script:
- echo "StrictHostKeyChecking no" > ~/.ssh/config
- git config --global user.email "ci@berkshelf.com"
- git config --global user.name "Berkshelf"
matrix:
include:
- rvm: 2.0.0
- rvm: 2.1
- rvm: 2.2
- rvm: 2.2
before_install:
# Failures in the berkshelf-api gemspec were happening with bundler 1.8
- gem install bundler --version=1.10.6
# Needed until https://github.com/travis-ci/apt-package-whitelist/pull/1820 is merged
- sudo apt-get update
- sudo apt-get -y install squid3
sudo: required
env:
- PROXY_TESTS_DIR=/tmp/proxy_tests
- PROXY_TESTS_REPO=$PROXY_TESTS_DIR/repo
- rvmsudo_secure_path=1
script:
- git clone https://github.com/chef/proxy_tests.git
- cd proxy_tests && chef-client -z -o proxy_tests::render && cd ..
- rvmsudo -E bundle exec bash $PROXY_TESTS_DIR/run_tests.sh berkshelf \* \* /tmp/out.txt
after_script: cat /tmp/out.txt
script: bundle exec thor spec:ci
Something went wrong with that request. Please try again.