Commit fcf8fd0fdba869f079578512a0ef1c5161d49168
1 parent
373433af
Exists in
web_steps_improvements
and in
6 other branches
Support Circle CI
Showing
2 changed files
with
55 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,50 @@ | @@ -0,0 +1,50 @@ | ||
1 | +machine: | ||
2 | + timezone: | ||
3 | + America/Bahia | ||
4 | + ruby: | ||
5 | + version: 2.3.0 | ||
6 | + services: | ||
7 | + - postgresql | ||
8 | + | ||
9 | +dependencies: | ||
10 | + pre: | ||
11 | + - sudo apt-get install po4a iso-codes tango-icon-theme pidgin-data libpq-dev libreadline-dev libxslt1-dev | ||
12 | + - mkdir -p tmp/{pids,cache} log cache | ||
13 | + | ||
14 | +database: | ||
15 | + override: | ||
16 | + - script/noosfero-plugins disableall | ||
17 | + - cp config/database.yml.circleci config/database.yml | ||
18 | + - bundle exec rake db:create | ||
19 | + - bundle exec rake db:schema:load | ||
20 | + - bundle exec rake db:migrate | ||
21 | + | ||
22 | +test: | ||
23 | + override: | ||
24 | + - ? | | ||
25 | + set -x -e | ||
26 | + case $CIRCLE_NODE_INDEX in | ||
27 | + 0) | ||
28 | + bundle exec rake test:api | ||
29 | + bundle exec rake test:functionals | ||
30 | + SLICE=1/4 bundle exec rake selenium | ||
31 | + SLICE=1/4 BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins | ||
32 | + ;; | ||
33 | + 1) | ||
34 | + bundle exec rake test:integration | ||
35 | + SLICE=2/4 bundle exec rake selenium | ||
36 | + SLICE=2/4 BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins | ||
37 | + ;; | ||
38 | + 2) | ||
39 | + bundle exec rake test:units | ||
40 | + SLICE=3/4 bundle exec rake selenium | ||
41 | + SLICE=3/4 BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins | ||
42 | + ;; | ||
43 | + 3) | ||
44 | + bundle exec rake cucumber | ||
45 | + SLICE=4/4 bundle exec rake selenium | ||
46 | + SLICE=4/4 BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins | ||
47 | + ;; | ||
48 | + esac | ||
49 | + : | ||
50 | + parallel: true |