https://github.com/owncloud/core
Raw File
Tip revision: 4ea017a8ab76872e6a8a149614dc3c89f5bc885a authored by Vincent Petry on 24 April 2017, 18:42:13 UTC
Merge pull request #27711 from owncloud/repair-apps
Tip revision: 4ea017a
.travis.yml
sudo: false
language: php
php:
  - 5.6

cache:
  directories:
    - $HOME/.cache/bower
    - $HOME/.composer/cache
    - $HOME/.npm
    - /tmp/phantomjs

env:
  global:
    - TEST_DAV=$(tests/travis/changed_app.sh dav)
    - TC=litmus-v2
    - SRV_HOST_NAME=owncloud
    - SRV_HOST_PORT=8888
  matrix:
    - DB=sqlite

branches:
  only:
    - master
    - /^stable\d+(\.\d+)?$/

addons:
  apt:
    packages:
    - realpath
  hosts:
    - owncloud
  sauce_connect:

before_install:
  - make
  - sh -c "if [ '$TEST_DAV' = '1' ] || [ '$TC' = 'selenium' ]; then bash tests/travis/before_install.sh $DB; fi"

install:
  - sh -c "if [ '$TEST_DAV' = '1' ] || [ '$TC' = 'selenium' ]; then bash tests/travis/install.sh $DB; fi"
  - sh -c "if [ '$TEST_DAV' = '1' ]; then bash apps/dav/tests/travis/$TC/install.sh; fi"

before_script:
  - sh -c "if [ '$TC' = 'selenium' ]; then bash tests/travis/start_php_dev_server.sh; fi"

script:
  - sh -c "if [ '$TC' = 'syntax' ]; then make test-php-lint ; fi"
  - sh -c "if [ '$TEST_DAV' != '1' ]; then echo \"Not testing DAV\"; fi"
  - sh -c "if [ '$TEST_DAV' = '1' ]; then echo \"Testing DAV\"; fi"

  - sh -c "if [ '$TEST_DAV' = '1' ]; then bash apps/dav/tests/travis/$TC/script.sh; fi"
  - sh -c "if [ '$TC' = 'selenium' ] && [ ! -z "$SAUCE_USERNAME" ] && [ ! -z "$SAUCE_ACCESS_KEY" ]; then bash tests/travis/start_behat_tests.sh; fi"

matrix:
  include:
    - php: 5.6
      env: DB=pgsql;TC=litmus-v1
    - php: 5.6
      env: DB=sqlite;TC=carddav
    - php: 5.6
      env: DB=sqlite;TC=caldav
    - php: 5.6
      env: DB=pgsql;TC=selenium;TEST_DAV=0
    - php: 5.6
      env: DB=sqlite;TC=syntax;TEST_DAV=0
    - php: 7.0
      env: DB=sqlite;TC=syntax;TEST_DAV=0

  fast_finish: true
back to top