forked from venarius/stellar-invictus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (36 loc) · 752 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: ruby
git:
depth: false
branches:
only:
- master
env:
global:
- TRAVIS_NODE_VERSION="10"
- RUBY_GLOBAL_METHOD_CACHE_SIZE=131072
rvm:
- 2.5.3
services:
- redis-server
- postgresql
sudo: required
dist: trusty
cache:
apt: true
directories:
- vendor/bundle
before_install:
- nvm install node
- node --version
- gem install bundler -v 1.17.3
- psql -c 'create database travis_ci_test;' -U postgres
- cp config/database.yml.travis config/database.yml
script:
- |
bash -c "
bundle exec rubocop --parallel && \
bundle exec rails db:setup && \
bundle exec rake pathfinder:generate_mapdata && \
bundle exec rake pathfinder:generate_paths && \
bundle exec rspec
"