-
Notifications
You must be signed in to change notification settings - Fork 4
/
circle.yml
29 lines (29 loc) · 1014 Bytes
/
circle.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
machine:
node:
version: 7.7.4
ruby:
version: 2.5.0
dependencies:
pre:
- sudo service postgresql stop
- sudo mv /usr/lib/postgresql-9.6/9.6 /usr/lib/postgresql/9.6
- sudo mv /etc/postgresql-9.6/9.6 /etc/postgresql/9.6
- sudo sed -i 's/5433/5432/g' /etc/postgresql/9.6/main/postgresql.conf
- sudo sed -i 's/md5$/trust/' /etc/postgresql/9.6/main/pg_hba.conf
- sudo service postgresql start 9.6
- sudo su postgres -c "createuser -s $USER"
- yarn global add greenkeeper-lockfile@1
override:
- yarn install
- bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
test:
pre:
- greenkeeper-lockfile-update
override:
- bundle exec rake factory_bot:lint RAILS_ENV='test'
- bundle exec rspec -r rspec_junit_formatter --format progress --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml:
parallel: true
files:
- spec/**/*_spec.rb
post:
- greenkeeper-lockfile-upload