Commit b15e91163b8a90d0005d091c242f3e57319b748b

Authored by Rafael Reggiani Manzo
1 parent fde4d43c
Exists in colab and in 2 other branches master, stable

Prevent CI from starting Kalibro before unit tests

They get started just for the acceptance tests. This is supposed to
prevent false positives for missing mocks on unit tests.

This still uses an unreleased version of kalibro_install which should
get replaced after this gets working.
Showing 1 changed file with 15 additions and 2 deletions   Show diff stats
.travis.yml
... ... @@ -5,7 +5,10 @@ addons:
5 5 postgresql: "9.3"
6 6  
7 7 before_script:
8   - - git clone https://github.com/mezuro/kalibro_install.git -b v4.0 kalibro_install
  8 + #FIXME: change the branch to a newly installed version
  9 + - git clone https://github.com/mezuro/kalibro_install.git -b do_not_start_services kalibro_install
  10 + - export KALIBRO_CONFIGURATIONS_START=0
  11 + - export KALIBRO_PROCESSOR_START=0
9 12 - pushd kalibro_install
10 13 #
11 14 # Remove bugged libzmq3 package, see https://github.com/travis-ci/travis-ci/issues/982 and https://github.com/travis-ci/travis-ci/issues/1715 for details
... ... @@ -18,14 +21,24 @@ before_script:
18 21 - bash install.sh
19 22 - popd
20 23 - cp config/database.yml.sample config/database.yml
21   - - bundle exec rake db:setup
  24 + # Do not run setup as the Kalibro services are up and this is not even necessary!
  25 + - bundle exec rake db:create
  26 + - bundle exec rake db:migrate
22 27 - cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml
23 28 - export BUNDLE_GEMFILE=$PWD/Gemfile
24 29 - export CODECLIMATE_REPO_TOKEN=045c2433d496f108c0c6afa5516a72ddbfb1868fb34bf7a9bd095b7a0ea34a79
25 30  
26 31 script:
  32 + # Unit tests
27 33 - bundle exec rake spec
28 34 - bundle exec rake konacha:run
  35 + #
  36 + # Start kalibro for acceptance tests
  37 + - pushd kalibro_install
  38 + - bash start_kalibro_services.sh
  39 + - popd
  40 + #
  41 + # Acceptance tests
29 42 - bundle exec rake cucumber
30 43  
31 44 notifications:
... ...