-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
107 lines (82 loc) · 2.11 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: ruby
# https://github.com/discourse/mini_racer#travis-ci
sudo: required
dist: trusty
addons:
chrome: stable
git:
submodules: false
branches:
only:
- master
- /^.*-stable$/
- /^.*ci-check$/
cache:
bundler: true
directories:
- /home/travis/.nvm/
- smoke_test_opal_rspec
- node_modules
matrix:
fast_finish: true
include:
- rvm: jruby-9.2
env:
- RUN=rspec
- JRUBY_OPTS=--dev
- rvm: 2.6
env: RUN=mspec_opal_chrome
- rvm: 2.6
env: RUN=mspec_ruby_chrome
# - rvm: 2.6
# env:
# - RUN=browser_test
# - SAUCE_USERNAME=elia
# # SAUCE_ACCESS_KEY:
# - secure: GT13SjzU8vmqKIyY2LAXje+ndqevTsX/w71JkZHRLTrDUl0qcIod7xsfahbzGt2gOZPYZUkKiVaPoUenhc/YeJ2jTJVHeHY9UEl2II+3tOtuvp2jLadA//aBbsB6/09d7lIZMzpa93TL2R/SncPxugYW9v2o8o8Lwd2iIzowT/g=
- rvm: 2.6
env: RUN=lint
- rvm: 2.6
env: RUN=mspec_opal_nodejs
- rvm: 2.6
env: RUN=mspec_ruby_nodejs TZ="/usr/share/zoneinfo/Pacific/Fiji"
- rvm: 2.6
env: RUN=minitest
- rvm: 2.6
env: RUN=rspec RACK_VERSION='~> 2.0' CHECK_COVERAGE=true
- rvm: 2.6
env: RUN=smoke_test
- rvm: ruby-head
env: RUN=rspec
- rvm: 2.5
env: RUN=rspec RACK_VERSION='~> 2.0'
- rvm: 2.4
env: RUN=rspec
- rvm: 2.7
env: RUN=rspec
- rvm: truffleruby
env: RUN=rspec
- rvm: jruby-head
env:
- RUN=rspec
- JRUBY_OPTS=--dev
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
- rvm: truffleruby
- env: RUN=smoke_test
before_install:
# Keep track of which version of node we're running the specs against
- bin/git-submodule-fast-install
- node -v
- npm install
- export PATH="node_modules/.bin:$PATH"
- bundle config without doc
- which google-chrome-stable
- google-chrome-stable --version
- export RUBYOPT=-w
# Workaround from https://github.com/travis-ci/travis-ci/issues/9024#issuecomment-356282802
- sudo chown root /opt/google/chrome/chrome-sandbox
- sudo chmod 4755 /opt/google/chrome/chrome-sandbox
script:
- "bundle exec rake $RUN"