-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcircle.yml
23 lines (20 loc) · 1.01 KB
/
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
machine:
services:
- docker
dependencies:
override:
- docker pull versioneye/mongodb:3.4
- docker pull reiz/elasticsearch:0.9.1-1
- docker pull reiz/memcached:1.4.14
- docker pull reiz/rabbitmq:3.4.2
- docker run --name mongodb -d versioneye/mongodb:3.2.6
- docker run --name memcached -d reiz/memcached:1.4.14
- docker run --name elasticsearch -d reiz/elasticsearch:0.9.1-1
- docker run --name rabbitmq -d reiz/rabbitmq:3.4.2
database:
override:
- cp config/mongoid.yml.ci config/mongoid.yml
test:
override:
- docker build -t versioneye/crawlr:1.0.0 .
- docker run --env RAILS_ENV=test --env GITHUB_PASS=$GITHUB_PASS --env GITHUB_USER=$GITHUB_USER --env GITHUB_CLIENT_SECRET=$GITHUB_CLIENT_SECRET --link mongodb:db --link elasticsearch:es --link memcached:mc --link rabbitmq:rm -v $CIRCLE_TEST_REPORTS:$CIRCLE_TEST_REPORTS versioneye/crawlr:1.0.0 bundle exec rspec -r rspec_junit_formatter --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml