Skip to content

Commit

Permalink
#96 integration of ceph/demo container, enabled integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jrse committed Oct 24, 2017
1 parent 347c6e3 commit 1f0a06b
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,29 @@ env:
- DOVECOT="master-2.2"
- DOVECOT="master"
before_install:
- docker run -itd --name build -v $(pwd):/repo cephdovecot/travis-build:$DOVECOT sh
- docker volume create --name ceph_config
- docker network create --driver=bridge --subnet=192.168.2.0/24 --gateway=192.168.2.1 ceph_network
- docker run -d --net=ceph_network --name ceph_demo -v ceph_config:/etc/ceph -e MON_IP=192.168.2.2 -e CEPH_PUBLIC_NETWORK=192.168.2.0/24 ceph/demo
- docker run -itd --name build --net=ceph_network -v ceph_config:/etc/ceph -v $(pwd):/repo cephdovecot/travis-build:$DOVECOT sh
- docker exec build sh -c 'printf "nameserver 8.8.8.8\n" > /etc/resolv.conf'
- docker exec build apt-get -qq update
- docker exec build apt-get -qq upgrade
before_script:
- docker exec build sh -c 'cd /usr/local/src/dovecot; git pull'
- docker exec build sh -c 'cd /usr/local/src/dovecot; make install'
script:
- docker exec build sh -c 'cd repo; ./autogen.sh'
- docker exec build sh -c 'cd repo; ./configure --with-dovecot=/usr/local/lib/dovecot --enable-maintainer-mode
--enable-debug'
- docker exec build sh -c 'cd repo; ./configure --with-dovecot=/usr/local/lib/dovecot --enable-maintainer-mode --enable-debug --with-integration-tests'
- docker exec build sh -c 'printf "[client]\nid=zorro\nosd max write size =5\nclient mount timeout=120\n" >> /etc/ceph/ceph.conf'
- docker exec build sh -c 'cd repo; make clean all'
- docker exec build sh -c 'cd repo; make check TESTS=test_\*'
- docker exec build sh -c 'cd repo; make check'
- docker exec build sh -c 'cd repo; cat src/tests/test-suite.log'
after_script:
- docker stop build ceph_demo
- docker rm build ceph_demo
- docker network rm ceph_network
- docker volume rm ceph_config

notifications:
slack:
secure: CZ4/u+Hl2K2/YIsjwJoghhO3zm5XkJffiXk7voppIBFSLTUHPEgSSsZCdcBgNUSh/gjMI23geQb5PgTcfuVjuexDuX5RH43pRLHKJoFPK4UHkUEucebUY1O5K0Czvw0s1Y5YWWBWoJCsYf540kIA7hi4PoyPQ+dUC0bUItYs8APLrsz2BssEnbWR9W0mo7v4N43+KSDUObxnpNGTUVhepogrw4/cmcpUeqJU0c+lt9QpV4wMkoiRgBVfX696SCegPTOq/CtOhTzHJ5R65Bv+7zImA+/AYpRtIvkJMoHY5brRNm3bYz7an0QnFJq5B+K52Q/1CU7qhH6iED/Do35HvhW7DWJ3NBnV49vD4hR8Gam0nhHsqgd8zDpA4pIYHpC2GjXKnKk5GETIz+Ju0aepccheyLzxEK1wZKM4heMVdizA4KMyYDSGyAkElWuJhCQ0SXO8NVwH5onpQtU9rWWgGAXAV4qnHoxXzsqexw6bE7sik2h/SVUdXYmhKDT4gGUlFH+RN/5xGnMOaaYYduYi4z2ueMANw6PfROT64arsRKyFaCby9MT1YgOGtDyXee2o1RfyI1FbOTEzb+q/yOrUnk0eExBzSBi8dYjJwccY2A57bYfTNYtNLDXbsQmuVjeBiZuc1RujOsnfPpklgcWAj59OwcmkjlCzrU9uC7/vzKI=

0 comments on commit 1f0a06b

Please sign in to comment.