Blame view

circle.yml 1.42 KB
fcf8fd0f   Braulio Bhavamitra   Support Circle CI
1
2
3
4
machine:
  timezone:
    America/Bahia
  ruby:
b9867847   Braulio Bhavamitra   travis,circle: Up...
5
    version: 2.3.1
fcf8fd0f   Braulio Bhavamitra   Support Circle CI
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
  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
2647f313   Braulio Bhavamitra   ci: support testi...
31
          SLICE=1/4 NOOSFERO_BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins
fcf8fd0f   Braulio Bhavamitra   Support Circle CI
32
33
34
35
          ;;
        1)
          bundle exec rake test:integration
          SLICE=2/4 bundle exec rake selenium
2647f313   Braulio Bhavamitra   ci: support testi...
36
          SLICE=2/4 NOOSFERO_BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins
fcf8fd0f   Braulio Bhavamitra   Support Circle CI
37
38
39
40
          ;;
        2)
          bundle exec rake test:units
          SLICE=3/4 bundle exec rake selenium
2647f313   Braulio Bhavamitra   ci: support testi...
41
          SLICE=3/4 NOOSFERO_BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins
fcf8fd0f   Braulio Bhavamitra   Support Circle CI
42
43
44
45
          ;;
        3)
          bundle exec rake cucumber
          SLICE=4/4 bundle exec rake selenium
2647f313   Braulio Bhavamitra   ci: support testi...
46
          SLICE=4/4 NOOSFERO_BUNDLE_OPTS=install bundle exec rake test:noosfero_plugins
fcf8fd0f   Braulio Bhavamitra   Support Circle CI
47
48
49
50
          ;;
        esac
      :
          parallel: true