summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: a8c32f91cdbadc4131a05260912035544e8858e4 (plain)
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
language: php
php:
  - 5.4
  - 5.5

before_install:
  - cd ..
  - git clone https://github.com/owncloud/core.git
  - mv news core/apps/
  - cd core
  - git submodule init
  - git submodule update
  - cd 3rdparty
  - git checkout stable6
  - cd ../apps/news

script:
  - sudo add-apt-repository -y ppa:chris-lea/node.js
  - sudo apt-get update
  - sudo apt-get -y install nodejs chromium
  - wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
  - tar xjf phantomjs-1.9.0-linux-x86_64.tar.bz2
  - sudo ln -s $(pwd)/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
  - phpunit --coverage-clover=coverage.clover tests/unit
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover
  - cd js/
  - npm install
  - npm test
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sudo npm install -g protractor
  - sudo webdriver-manager update
  - grunt e2e