This repository has been archived by the owner on Jul 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
.travis.yml
57 lines (46 loc) · 1.71 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
language: ruby
rvm:
- 2.6.5
env:
global:
- RAILS_ENV=test
-
# Code Climate Integration
secure: IHUYMK2spxorl9lUeAbAfT6btuP2qRT615bUnEuUDgYrXf9y1CdQprYWJaygou/+6aWmLL0NnxYSpOxi40bHgMKeUQnTjXVbkkqQ1Tml3cMSsjkBrx7CNUygHvDDzCQCEC6m9uZjUKMZAVzVSWlOQhSMKR7MtdsSvMCrKIgA2pM=
addons:
apt:
packages:
- ghostscript
- chromium-chromedriver
update: true
chrome: stable
services:
- mysql
before_install:
- if [ $TRAVIS_PULL_REQUEST == "false" ]; then git clone https://github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_REPO_SLUG && cd $TRAVIS_REPO_SLUG && git checkout -qf $TRAVIS_BRANCH; fi
- if [ $TRAVIS_PULL_REQUEST == "true" ]; then git checkout -qf master && git checkout -qf $TRAVIS_COMMIT; fi
- convert -version
- ln --symbolic /usr/lib/chromium-browser/chromedriver "${HOME}/bin/chromedriver"
- gs -v
- google-chrome --version
- chromedriver --version
- 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc'
bundler_args: --without=production staging development
before_script:
- cp config/database.travis.yml config/database.yml
- cp config/secrets.yml.example config/secrets.yml
- bundle exec rake db:create
- bundle exec rake db:schema:load
script:
- bundle exec rake check_style
- xvfb-run -a bundle exec rake
# From Travis CI Support: This will route jobs to our beta build environment,
# which has much faster boot times, making it easier to debug via Travis.
sudo: false
# the new build env has caching enabled
cache: bundler
# Notifications settings
notifications:
email: false
slack:
secure: "OeEIWrjKJbxTGgq6XYL6tLewPb4oRisGiLKZF6QWcaOUUlATbP6I5DSykon+G6dgpWDxqrAZXEbLSr+bUNwYufdhVJJHGaPIeGmrzajrwdyfS/mIkM6+MDvZWmiFwDI5ctOfvAY1sGDu/W0fflLk9NZ/UcZDsN4RCNb9981bpTE="