forked from berkshelf/berkshelf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (72 loc) · 1.95 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
addons:
apt:
packages:
- chef
- git
- graphviz
- libarchive-dev
# - libgecode-dev
sources:
- chef-stable-trusty
cache:
- apt
- bundler
dist: trusty
#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
before_install:
- gem update --system
- gem install bundler
install: travis_wait bundle install --without changelog --jobs 7 --retry=3
before_script:
- echo "StrictHostKeyChecking no" > ~/.ssh/config
- git config --global user.email "[email protected]"
- git config --global user.name "Berkshelf"
matrix:
include:
- rvm: 2.4.4
- rvm: 2.5.1
- rvm: ruby-head
- rvm: 2.5.1
before_install:
- gem update --system
- gem install bundler
- rm Gemfile.lock
- rvm: 2.5.1
env:
CHEFSTYLE: 1
script: bundle exec rake style
- rvm: 2.5.1
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 apache2-utils
- sudo htpasswd -b -c /etc/squid3/passwords proxy proxy
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 && bundle exec 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
allow_failures:
- rvm: ruby-head
script: bundle exec thor spec:ci