forked from noosfero/noosfero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
50 lines (47 loc) · 1.42 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
machine:
timezone:
America/Bahia
ruby:
version: 2.3.1
services:
- postgresql
dependencies:
pre:
- sudo apt-get install po4a iso-codes tango-icon-theme pidgin-data libpq-dev libreadline-dev libxslt1-dev
- mkdir -p tmp/{pids,cache} log cache
database:
override:
- script/noosfero-plugins disableall
- cp config/database.yml.circleci config/database.yml
- bundle exec rake db:create
- bundle exec rake db:schema:load
- bundle exec rake db:migrate
test:
override:
- ? |
set -x -e
case $CIRCLE_NODE_INDEX in
0)
bundle exec rake test:api
bundle exec rake test:functionals
SLICE=1/4 bundle exec rake selenium
SLICE=1/4 NOOSFERO_BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins
;;
1)
bundle exec rake test:integration
SLICE=2/4 bundle exec rake selenium
SLICE=2/4 NOOSFERO_BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins
;;
2)
bundle exec rake test:units
SLICE=3/4 bundle exec rake selenium
SLICE=3/4 NOOSFERO_BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins
;;
3)
bundle exec rake cucumber
SLICE=4/4 bundle exec rake selenium
SLICE=4/4 NOOSFERO_BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins
;;
esac
:
parallel: true