forked from greasyfork-org/greasyfork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 997 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
language: ruby
rvm:
- 2.6.6
env:
- DB=mysql
sudo: required
services:
- mysql
addons:
chrome: stable
before_install: gem install bundler
install:
- wget -N https://chromedriver.storage.googleapis.com/2.42/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- wget http://sphinxsearch.com/files/sphinx-3.1.1-612d99f-linux-amd64.tar.gz
- tar -xvf sphinx-3.1.1-612d99f-linux-amd64.tar.gz
- export PATH=$PATH:$PWD/sphinx-3.1.1/bin/
before_script:
- cp test/travisconfig/database.yml config/database.yml
- cp test/travisconfig/secrets.yml config/secrets.yml
- mysql -e 'create database greasyforktest'
- mysql greasyforktest < db/structure.sql
- mkdir -p tmp/sockets
script:
- bundle install
- bundle exec rails db:environment:set test test:system