forked from opal/opal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
104 lines (79 loc) · 2.39 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
language: ruby
# https://github.com/discourse/mini_racer#travis-ci
sudo: required
dist: trusty
addons:
chrome: stable
branches:
only:
- master
- /^.*-stable$/
- /^.*ci-check$/
cache:
bundler: true
directories:
- /home/travis/.nvm/
- smoke_test_opal_rspec
matrix:
fast_finish: true
include:
- rvm: 2.5.3
env: RUN=mspec_opal_chrome REINSTALL_BUNDLER=true
- rvm: 2.5.3
env: RUN=mspec_ruby_chrome REINSTALL_BUNDLER=true
# - rvm: 2.5.3
# env:
# - RUN=browser_test
# - SAUCE_USERNAME=elia
# # SAUCE_ACCESS_KEY:
# - secure: GT13SjzU8vmqKIyY2LAXje+ndqevTsX/w71JkZHRLTrDUl0qcIod7xsfahbzGt2gOZPYZUkKiVaPoUenhc/YeJ2jTJVHeHY9UEl2II+3tOtuvp2jLadA//aBbsB6/09d7lIZMzpa93TL2R/SncPxugYW9v2o8o8Lwd2iIzowT/g=
- rvm: 2.5.3
env: RUN=lint REINSTALL_BUNDLER=true
- rvm: 2.5.3
env: RUN=mspec_opal_nodejs REINSTALL_BUNDLER=true
- rvm: 2.5.3
env: RUN=mspec_ruby_nodejs REINSTALL_BUNDLER=true TZ="/usr/share/zoneinfo/Pacific/Fiji"
- rvm: 2.5.3
env: RUN=minitest REINSTALL_BUNDLER=true
- rvm: 2.5.3
env: RUN=rspec RACK_VERSION='~> 2.0.0' CHECK_COVERAGE=true REINSTALL_BUNDLER=true
- rvm: 2.5.3
env: RUN=smoke_test REINSTALL_BUNDLER=true
- rvm: ruby-head
env: RUN=rspec REINSTALL_BUNDLER=true
- rvm: 2.4.5
env: RUN=rspec RACK_VERSION='~> 2.0.0' REINSTALL_BUNDLER=true
- rvm: 2.3.8
env: RUN=rspec
- rvm: jruby-9.2.4.1
env: RUN=rspec
- rvm: jruby-head
env: RUN=rspec
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
- env: RUN=smoke_test
before_install:
# Keep track of which version of node we're running the specs against
- node -v
- git submodule update --init
- npm install -g jshint
- npm install -g uglify-js
- test $REINSTALL_BUNDLER && gem install bundler || true
- type bundle || gem install bundler
- bundle config without doc
- which google-chrome-stable
- google-chrome-stable --version
- export RUBYOPT=-w
# Wokraround 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"
notifications:
irc: "irc.freenode.org#opal"
webhooks:
urls:
- https://webhooks.gitter.im/e/2ea12333adebda0c2289
# addons:
# sauce_connect: true