ref: master
./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 51 52 53 54 55 56 57 58 59 |
machine: timezone: America/Bahia ruby: version: 2.4.1 services: - postgresql - elasticsearch dependencies: cache_directories: - vendor/bundle - elasticsearch-2.4.3 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 post: - wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.3/elasticsearch-2.4.3.tar.gz - tar -xvf elasticsearch-2.4.3.tar.gz - elasticsearch-2.4.3/bin/elasticsearch: {background: true} 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 spec SPEC=spec/models 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 |