forked from mission-met/thredded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
137 lines (126 loc) · 4.15 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
language: ruby
os: linux
dist: bionic
addons:
apt:
packages:
- chromium-browser
before_install:
- bundle config set --local path ../../vendor/bundle without debug
jobs:
allow_failures:
- gemfile: spec/gemfiles/rails_main.gemfile
fast_finish: true
include:
- name: Rubocop
gemfile: spec/gemfiles/rubocop.gemfile
rvm: 2.7
script: bundle exec rubocop
before_install:
before_script:
after_script:
addons:
apt:
packages: []
- name: I18n Tasks
gemfile: spec/gemfiles/i18n-tasks.gemfile
rvm: 2.7
script: bundle exec i18n-tasks health
before_install:
before_script:
after_script:
addons:
apt:
packages: []
- gemfile: spec/gemfiles/rails_5_2.gemfile
rvm: 2.6
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.7
before_install: nvm install 14
env: DB=sqlite3 THREDDED_TESTAPP_SPROCKETS_JS=1
- gemfile: spec/gemfiles/rails_6_0.gemfile
rvm: 2.7
before_install: nvm install 14
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
service: postgresql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 3.0
before_install: nvm install 14
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 2.7
before_install: nvm install 14
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 2.7
before_install: nvm install 14
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_7_0.gemfile
rvm: 3.0
before_install: nvm install 14
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_7_0.gemfile
rvm: 3.0
before_install: nvm install 14
env: DB=mysql2 DB_USERNAME=root DB_PASSWORD=""
services: mysql
- gemfile: spec/gemfiles/rails_7_0.gemfile
rvm: 3.0
before_install: nvm install 14
env: DB=sqlite3
- gemfile: spec/gemfiles/rails_main.gemfile
rvm: 3.0
before_install: nvm install 14
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 2.5.3
before_install: nvm use node
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 2.7.2
before_install: nvm use node
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
- gemfile: spec/gemfiles/rails_6_1.gemfile
rvm: 3.0.0
before_install: nvm use node
env: DB=postgresql DB_USERNAME=postgres DB_PASSWORD=""
services: postgresql
cache:
bundler: true
directories:
# Cache the Onebox data and views to speed up tests
- tmp/cache/onebox-data
- tmp/cache/onebox-views
- spec/dummy/tmp/cache/onebox-data
- spec/dummy/tmp/cache/onebox-views
bundler_args: --path ../../vendor/bundle --without debug
env:
global:
- COVERAGE=1
- TRAVIS=1
- FERRUM_DEFAULT_TIMEOUT=20
before_script:
- >
if [[ $BUNDLE_GEMFILE != "${PWD}/spec/gemfiles/rails_5_2.gemfile" ]] && [[ -z $THREDDED_TESTAPP_SPROCKETS_JS ]]; then
cd spec/dummy && yarn && cd -
fi
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- SIMPLECOV_NAME="test:nojs" bundle exec rspec --force-color --format d --tag=~js --tag=~i18n_tasks
- SIMPLECOV_NAME="test:js" bundle exec rspec --force-color --format d --tag=js
- MIGRATION_SPEC=1 SIMPLECOV_NAME="test:migrations" bundle exec rspec spec/migration --force-color --format d
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
notifications:
slack:
secure: bnoj7Q/2yA3gtJ2IR/YtXrWCGvN7ukHKnhg1oNYJsOYNk0oEMMgjmGnIRrcdxO4peyOid6aKlcMmP7zrOzPEJsN3qAA4UUCRGq0TgZ2RDMX1sRZ8NN/xCyt84WU9aEtTF0V1hUyG/OaQ7G65XN/XuwJGzw6VDSZE54FSdR/5/eQ=