-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
34 lines (32 loc) · 1 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
language: ruby
cache: bundler
rvm: 2.5.0
bundler_args: "--without production development"
services: postgresql
env:
- COMMAND="rake test:units"
- COMMAND="rake test:others"
- COMMAND="rubocop -D -f simple"
- COMMAND="haml-lint --exclude-linter LineLength app/views"
- COMMAND="scss-lint app/assets/stylesheets"
- COMMAND="eslint app/assets/javascripts"
- COMMAND="brakeman"
- COMMAND="rake traceroute FAIL_ON_ERROR=1"
matrix:
include:
- env: COMMAND="rake test:functionals"
addons:
apt:
packages: texlive-latex-base
allow_failures:
- env: COMMAND="haml-lint --exclude-linter LineLength app/views"
- env: COMMAND="scss-lint app/assets/stylesheets"
- env: COMMAND="eslint app/assets/javascripts"
- env: COMMAND="brakeman"
- env: COMMAND="rake traceroute FAIL_ON_ERROR=1"
before_script:
- psql -c 'create database kontes_terbuka_test;' -U postgres
- cp config/database.yml.travis config/database.yml
- cp .env.default .env
script:
- "bundle exec $COMMAND"