-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (33 loc) · 1.09 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
dist: bionic # for newest node version
language: ruby
sudo: false
env:
global:
- ONCI=true
- ELASTIC_SEARCH_URL="http://127.0.0.1:9200" # ES is on port 9200 on Travis and 9201 on local
addons: # get google-chrome-stable
chrome: stable
services:
- mysql
- elasticsearch
- redis-server
before_install:
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elk.list
- sudo apt-get remove --purge elasticsearch -y
- sudo apt-get update && sudo apt-get install elasticsearch -y
- sudo -i service elasticsearch restart
before_script:
- yarn
- bundle exec rake db:drop || true
- bundle exec rake db:create
- bundle exec rake db:migrate
- sleep 5 # Starting ES takes time: https://docs.travis-ci.com/user/database-setup/#elasticsearch
- bundle exec rake environment elasticsearch:import:all FORCE=true
script:
- bundle exec rspec
notifications:
email:
recipients: