-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
49 lines (40 loc) · 1.12 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
sudo: required
dist: trusty
language: ruby
before_script:
- export DISPLAY=:99.0 && sh -e /etc/init.d/xvfb start && sleep 3
addons:
chrome: stable
postgresql: 9.4
env:
global:
- AVATAX_COMPANY_CODE=test_company
- AVATAX_ACCOUNT=test_account
- AVATAX_LICENSE_KEY=test_license_key
- AVATAX_ENDPOINT=https://development.avalara.net
- RAILS_ENV=test
- RACK_ENV=test
matrix:
- DB=postgres
- DB=mysql
gemfile:
- gemfiles/spree_3_7.gemfile
- gemfiles/spree_4_0.gemfile
- gemfiles/spree_4_1.gemfile
- gemfiles/spree_master.gemfile
script:
- bundle exec rake test_app
- bundle exec rake spec
rvm:
- 2.5.1
matrix:
allow_failures:
- gemfile: gemfiles/spree_master.gemfile
before_install:
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
- wget -N https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver