-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
34 lines (33 loc) · 956 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
30
31
32
33
general:
branches:
ignore:
- gh-pages
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
timezone: UTC
services:
- docker
dependencies:
override:
- sudo pip install docker-compose
database:
override:
- echo "nothing needed"
notify:
webhooks:
# gitter hook
- url: https://webhooks.gitter.im/e/448e1ef7669c919cdc5f
test:
pre:
- docker-compose up -d
- docker-compose run app rake db:drop
- docker-compose run app rake db:create
- docker-compose run app rake db:migrate
- docker-compose run app rake db:migrate RACK_ENV=test
- mkdir -p $CIRCLE_TEST_REPORTS/rspec
override:
- docker-compose run app rubocop
- docker-compose run app rspec -r rspec_junit_formatter --format RspecJunitFormatter -o ./junit.xml
# - docker-compose run app codeclimate-test-reporter
- mv ./junit.xml $CIRCLE_TEST_REPORTS/rspec