Noosfero/noosfero

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
sudo: required

language: generic

services:
  - docker

before_script:
  - docker-compose -f dev.yml up -d --build
  - >
    while ! docker logs noosfero | grep "Activating"; do
        echo "Waiting for entrypoint script to finish..."
        sleep 60
    done;
  - docker-compose -f dev.yml exec noosfero rails db:migrate RAILS_ENV=test

env:
  global:
    - RAILS_ENV=test
  matrix:
    - TASK=cypress:run
    - TASK=spec SPEC=spec/models
    - TASK=test:api
    - TASK=test test/unit
    - TASK=test test/functional
    - TASK=test:integration
    - SLICE=1/2 TASK=cucumber --profile default
    - SLICE=2/2 TASK=cucumber --profile default
    - SLICE=1/4 TASK=selenium
    - SLICE=2/4 TASK=selenium
    - SLICE=3/4 TASK=selenium
    - SLICE=4/4 TASK=selenium
    - SLICE=1/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    - SLICE=2/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    - SLICE=3/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    - SLICE=4/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install
    - SLICE=5/5 TASK=test:noosfero_plugins NOOSFERO_BUNDLE_OPTS=install

script:
  - docker-compose -f dev.yml exec noosfero bundle exec rake $TASK