.travis.yml 3.4 KB
Newer Older
1
language: ruby
2
sudo: false
3 4 5

cache:
  directories:
6
    - vendor/bundle
7 8
    - /tmp/cache/unicode_conformance
    - /tmp/beanstalkd-1.10
9 10
    - node_modules
    - $HOME/.nvm
11 12 13

services:
  - memcached
14
  - redis-server
15 16

addons:
17
  postgresql: "9.6"
18
  chrome: stable
G
George Claghorn 已提交
19 20 21 22
  apt:
    sources:
      - sourceline: "ppa:mc3man/trusty-media"
      - sourceline: "ppa:ubuntuhandbook1/apps"
23 24 25 26
    packages:
      - ffmpeg
      - mupdf
      - mupdf-tools
27 28

bundler_args: --without test --jobs 3 --retry 3
J
José Valim 已提交
29
before_install:
30
  - "rm ${BUNDLE_GEMFILE}.lock"
31
  - "travis_retry gem update --system"
32
  - "travis_retry gem install bundler"
33 34
  - "[ -f /tmp/beanstalkd-1.10/Makefile ] || (curl -L https://github.com/kr/beanstalkd/archive/v1.10.tar.gz | tar xz -C /tmp)"
  - "pushd /tmp/beanstalkd-1.10 && make && (./beanstalkd &); popd"
35
  - "[[ -z $encrypted_8a915ebdd931_key && -z $encrypted_8a915ebdd931_iv ]] || openssl aes-256-cbc -K $encrypted_8a915ebdd931_key -iv $encrypted_8a915ebdd931_iv -in activestorage/test/service/configurations.yml.enc -out activestorage/test/service/configurations.yml -d"
36 37 38 39
  - "[[ $GEM != 'av:ujs' ]] || nvm install node"
  - "[[ $GEM != 'av:ujs' ]] || node --version"
  - "[[ $GEM != 'av:ujs' ]] || (cd actionview && npm install)"

40
before_script:
41 42 43 44 45
  # Set Sauce Labs username and access key. Obfuscated, purposefully not encrypted.
  # Decodes to e.g. `export VARIABLE=VALUE`
  - $(base64 --decode <<< "ZXhwb3J0IFNBVUNFX0FDQ0VTU19LRVk9YTAzNTM0M2YtZTkyMi00MGIzLWFhM2MtMDZiM2VhNjM1YzQ4")
  - $(base64 --decode <<< "ZXhwb3J0IFNBVUNFX1VTRVJOQU1FPXJ1YnlvbnJhaWxz")

46 47
script: 'ci/travis.rb'

48
env:
49 50
  global:
    - "JRUBY_OPTS='--dev -J-Xmx1024M'"
51 52
  matrix:
    - "GEM=railties"
M
Matthew Draper 已提交
53
    - "GEM=ap,ac"
54
    - "GEM=am,amo,as,av,aj,ast"
55
    - "GEM=as PRESERVE_TIMEZONES=1"
56 57 58
    - "GEM=ar:mysql2"
    - "GEM=ar:sqlite3"
    - "GEM=ar:postgresql"
59
    - "GEM=guides"
M
Matthew Draper 已提交
60
    - "GEM=ac:integration"
61

62
rvm:
J
Jeremy Daer 已提交
63 64
  - 2.4
  - 2.5
65
  - ruby-head
66

67
matrix:
68
  include:
J
Jeremy Daer 已提交
69
    - rvm: 2.5
70
      env: "GEM=av:ujs"
J
Jeremy Daer 已提交
71
    - rvm: 2.4
72 73 74
      env: "GEM=aj:integration"
      services:
        - memcached
75
        - redis-server
76
        - rabbitmq
J
Jeremy Daer 已提交
77
    - rvm: 2.5
Y
yuuji.yaginuma 已提交
78 79 80 81 82
      env: "GEM=aj:integration"
      services:
        - memcached
        - redis-server
        - rabbitmq
83 84 85 86
    - rvm: ruby-head
      env: "GEM=aj:integration"
      services:
        - memcached
87
        - redis-server
88
        - rabbitmq
J
Jeremy Daer 已提交
89
    - rvm: 2.5
V
Vipul A M 已提交
90
      env:
91
        - "GEM=ar:mysql2 MYSQL=mariadb"
V
Vipul A M 已提交
92
      addons:
93
        mariadb: 10.2
J
Jeremy Daer 已提交
94
    - rvm: 2.5
95 96
      env:
        - "GEM=ar:sqlite3_mem"
J
Jeremy Daer 已提交
97
    - rvm: 2.5
98 99 100 101
      env:
        - "GEM=ar:postgresql POSTGRES=9.2"
      addons:
        postgresql: "9.2"
B
bogdanvlviv 已提交
102
    - rvm: jruby-9.1.15.0
103 104
      jdk: oraclejdk8
      env:
J
Jon Moss 已提交
105
        - "GEM=ap"
B
bogdanvlviv 已提交
106
    - rvm: jruby-9.1.15.0
J
Jon Moss 已提交
107 108
      jdk: oraclejdk8
      env:
J
Jon Moss 已提交
109
        - "GEM=am,amo,aj"
110
  allow_failures:
R
Rafael Mendonça França 已提交
111
    - rvm: ruby-head
B
bogdanvlviv 已提交
112
    - rvm: jruby-9.1.15.0
M
Matthew Draper 已提交
113
    - env: "GEM=ac:integration"
114
  fast_finish: true
115

116 117 118
notifications:
  email: false
  irc:
119 120 121
    on_success: change
    on_failure: always
    channels:
122 123
      # "irc.freenode.org#rails-contrib"
      - secure: "QFKSOK7xQiWWqTzYfYm0XWoW7idzuxT57MBW9i9EASyRLEPuDwZEubKRP40Y7wPx7ylQd9lp6kJheeLnrDvvTjFbW3sWv9GDRl4WlOU8sG/Kv7MXAASXlDqzyJxxXTtzLeXz2iwY296kOBuKxKxl923eTvEGeocwH02QGo14LpQ="
124
  campfire:
125 126 127
    on_success: change
    on_failure: always
    rooms:
128
      - secure: "YA1alef1ESHWGFNVwvmVGCkMe4cUy4j+UcNvMUESraceiAfVyRMAovlQBGs6\n9kBRm7DHYBUXYC2ABQoJbQRLDr/1B5JPf/M8+Qd7BKu8tcDC03U01SMHFLpO\naOs/HLXcDxtnnpL07tGVsm0zhMc5N8tq4/L3SHxK7Vi+TacwQzI="