summaryrefslogtreecommitdiff
path: root/spec/ruby/.travis.yml
blob: e8a9106ac1705eb68a3a72c39761f926a37eac6f (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
sudo: false
language: ruby
install:
  - git clone https://github.com/ruby/mspec.git ../mspec
script:
  - if [ -n "$RUBOCOP" ]; then gem install rubocop -v 0.51.0 && rubocop; fi
  - ../mspec/bin/mspec $MSPEC_OPTS
matrix:
  include:
    - os: osx
      osx_image: xcode9
      rvm: 2.4.2
      env: CHECK_LEAKS=true
    - os: linux
      rvm: 2.4.2
      env: MSPEC_OPTS="-R2 -ff"
    - os: linux
      rvm: 2.2.8
    - os: linux
      rvm: 2.3.5
    - os: linux
      rvm: 2.4.2
      env: CHECK_LEAKS=true RUBOCOP=true
    - os: linux
      rvm: ruby-head
  allow_failures:
    - os: linux
      rvm: ruby-head
branches:
  only:
    - master
    - /^try/
notifications:
  email:
    on_success: change
    on_failure: change