forked from helpyio/helpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (37 loc) · 947 Bytes
/
.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
language: ruby
rvm:
- 2.4.6
- 2.5.3
services:
- postgresql
before_install:
# Install a current Bundler version
- gem install bundler -v '< 2'
before_script:
# Setup Test Database
- psql -c 'create database helpy_test;' -U postgres
# Prepare 'jshint' executable for JavaScript linting
- npm install -g jshint
script:
# Load database schema
- bundle exec rake db:schema:load
# Test suite
- bundle exec rake
# Brakeman security scanner
- bundle exec brakeman -z
# Check vulnerable gems
- bundle exec bundle-audit check --update --ignore CVE-2015-9284 CVE-2019-16676
# Rubocop static code analyzer
- bundle exec rubocop
# SCSS analyzer
- bundle exec scss-lint
# JavaScript analyzer
- jshint ./app
cache: bundler
addons:
code_climate:
repo_token: 8aed69acf532241f5281042dc5b1a5d89ea9206773d079ce2de838a28f0f5041
chrome: stable
apt:
packages:
- chromium-chromedriver