forked from shakacode/cypress-on-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (35 loc) · 1.17 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
language: ruby
rvm:
- 2.3
- 2.4
- 2.5
- 2.6
# - 2.7
#addons:
# artifacts:
# s3_region: "ap-southeast-2"
# paths:
# - $(ls spec/integrations/*/*/cypress/{screenshots,videos}/* | tr "\n" ":")
# - $(ls spec/integrations/rails_3_2/cypress/{screenshots,videos}/* | tr "\n" ":")
cache:
directories:
- spec/integrations/rails_5_2/spec/node_modules
- spec/integrations/rails_5_2/vendor/bundle
- spec/integrations/rails_4_2/test/node_modules
- spec/integrations/rails_4_2/vendor/bundle
- spec/integrations/rails_3_2/node_modules
- spec/integrations/rails_3_2/vendor/bundle
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y build-essential patch ruby-dev zlib1g-dev liblzma-dev libxml2-dev
- sudo apt-get install -y xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
- travis_retry nvm install 14.13.1
- node -v
- nvm alias default 14.13.1
script:
- bundle exec rake
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'
- ./spec/integrations/rails_5_2/test.sh
- ./spec/integrations/rails_4_2/test.sh
- ./spec/integrations/rails_3_2/test.sh