blob: 2282e6950b2e3da523fac290761c4803d8f2ed02 (
plain)
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
|
language: ruby
cache: bundler
rvm:
- 2.5
gemfiles:
- Gemfile
- Gemfile.ci # rails 5
branches:
only:
- master
services:
- elasticsearch
- redis-server
before_install:
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
- gem install bundler -v '< 2'
# https://docs.travis-ci.com/user/database-setup/#elasticsearch
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.5.1-amd64.deb
# Verify checksum
- echo e566a88e15d8f85cf793c8f971b51eeae6465a0aa73f968ae4b1ee6aa71e4c20 elasticsearch-7.5.1-amd64.deb | sha256sum -c
- sudo find /etc/default/elasticsearch /etc/elasticsearch -ls
- sudo cat /etc/default/elasticsearch
- sudo service elasticsearch stop
- sudo dpkg -i --force-confnew elasticsearch-7.5.1-amd64.deb
- sudo find /etc/default/elasticsearch /etc/elasticsearch -ls
- sudo cat /etc/default/elasticsearch
- sudo chmod 0644 /etc/default/elasticsearch
- sudo service elasticsearch start || ( sudo service elasticsearch status ; sudo journalctl -xe ; exit 1 )
before_script:
- cp config/secrets.yml.dist config/secrets.yml
# Wait for Elasticsearch
- sleep 10
# Check ES output!
- curl --connect-timeout 1 -o - 'http://127.0.0.1:9200/_cat/health?format=json&v&pretty'
script:
- bundle exec rubocop
- bundle exec rake kkuleomi:index:init RAILS_ENV=test
# vim:ft=yaml et ts=2 sts=2 sw=2:
|