forked from mezuro/prezento
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (50 loc) · 1.69 KB
/
.travis.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
language: ruby
rvm:
- 2.3.0
- 2.0.0-p598 # CentOS 7
- 2.1.5 # Debian 8
addons:
postgresql: "9.3"
before_install:
- if ruby --version | cut -d ' ' -f 2 | grep -q 2.1.5p273 ; then gem update --system 2.4.8; fi
before_script:
- git clone https://github.com/mezuro/kalibro_install.git -b v4.2 kalibro_install
- export KALIBRO_CONFIGURATIONS_START=0
- export KALIBRO_PROCESSOR_START=0
- pushd kalibro_install
#
# 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
#
# In 2016/04/27 the state is:
# * The first issue has been closed and apparently fixed by a PR
# * The second one has been closed without a PR and removing the workaround below breaks the build
#
- sudo apt-get remove libzmq3
- bash install.sh
- popd
- cp config/database.yml.sample config/database.yml
- cp config/kalibro.yml.sample config/kalibro.yml
# Do not run setup as the Kalibro services are up and this is not even necessary!
- bundle exec rake db:create
- bundle exec rake db:migrate
- cp features/support/kalibro_cucumber_helpers.yml.sample features/support/kalibro_cucumber_helpers.yml
- export BUNDLE_GEMFILE=$PWD/Gemfile
- export CODECLIMATE_REPO_TOKEN=045c2433d496f108c0c6afa5516a72ddbfb1868fb34bf7a9bd095b7a0ea34a79
script:
# Unit tests
- bundle exec rake spec
- bundle exec rake konacha:run
#
# Start kalibro for acceptance tests
- pushd kalibro_install
- bash start_kalibro_services.sh
- popd
#
# Acceptance tests
- bundle exec rake cucumber
notifications:
email:
recipients:
on_success: change
on_failure: always