summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: a5f2567fd218e870531cce24b3531d6fe4775947 (plain)
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
language: ruby
sudo: required
cache: bundler
dist: trusty

# Early warning system to catch if Rubygems breaks something
before_install:
  - gem update --system $(grep rubygems omnibus_overrides.rb | cut -d'"' -f2)
  - gem --version
  - rvm @global do gem uninstall bundler -a -x
  - gem install bundler -v $(grep bundler omnibus_overrides.rb | cut -d'"' -f2)
  - bundle --version
  - rm -f .bundle/config

before_script:
 # force all .rspec tests into progress display to reduce line count
 - echo --color > .rspec
 - echo -fp >> .rspec
 # necessary for sudo: true tests, ignore failures on tests invoked with sudo: false
 - sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers || true

# do not run expensive spec tests on PRs, only on branches
branches:
  only:
  - master
  - chef-12

env:
  global:
    - FORCE_FFI_YAJL=ext

matrix:
  include:
  - rvm: 2.3.5
    sudo: true
    script: sudo -E $(which bundle) exec rake spec;
    # also remove integration / external tests
    bundler_args: --without ci docgen guard integration maintenance omnibus_package --frozen
  - rvm: 2.4.2
    sudo: true
    script: sudo -E $(which bundle) exec rake spec;
    # also remove integration / external tests
    bundler_args: --without ci docgen guard integration maintenance omnibus_package --frozen