зеркало из https://github.com/mozilla/treeherder.git
Bug 1166901 - Get the UI tests running as part of the travis run
This merges the service and UI Travis configs, to get the Karma UI tests running on Travis in the new repo. We can only set 'language' to one value, however that doesn't matter, since nodejs is installed by default and all the 'language: node_js' did was set a few default build cycle steps - and we can define those ourselves manually. We install the deps using npm install, ensure they are cached by adding the node_modules directory to the cache list, get xvfb running for Karma (see http://docs.travis-ci.com/user/gui-and-headless-browsers/) and use |npm test| to run Karma using karma.conf.js. The end to end tests (karma-e2e.conf.js) are not currently running, same as before the repo merge.
This commit is contained in:
Родитель
be4c2b5d04
Коммит
5ca4afd464
|
@ -1,19 +0,0 @@
|
|||
sudo: false
|
||||
language: node_js
|
||||
node_js:
|
||||
- 0.10
|
||||
before_script:
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
notifications:
|
||||
email:
|
||||
on_success: never
|
||||
on_failure: always
|
||||
|
||||
# Do not run these on the travis server at this time.
|
||||
# The end to end tests require the service to be running, but travis can't
|
||||
# start the service for us. So we would have to have the default point to
|
||||
# a dedicated dev service instance that is reach-able by travis. However, we
|
||||
# require /etc/hosts to have an entry at this point to reach our current dev
|
||||
# server. So these tests should be run only locally for now.
|
||||
# - karma start config/karma-e2e.conf.js --reporters=dots --browsers=Firefox
|
14
.travis.yml
14
.travis.yml
|
@ -9,6 +9,7 @@ python:
|
|||
cache:
|
||||
directories:
|
||||
- $HOME/virtualenv/python2.7.9
|
||||
- node_modules
|
||||
env:
|
||||
global:
|
||||
- DB=mysql
|
||||
|
@ -27,15 +28,28 @@ services:
|
|||
- rabbitmq
|
||||
- memcached
|
||||
install:
|
||||
- npm install
|
||||
- ./bin/peep.py install -r requirements/common.txt
|
||||
- ./bin/peep.py install -r requirements/dev.txt
|
||||
before_script:
|
||||
- flake8 --show-source
|
||||
# Required for Karma tests (http://docs.travis-ci.com/user/gui-and-headless-browsers/)
|
||||
- export DISPLAY=:99.0
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- python setup.py build_ext --inplace
|
||||
- mysql -e 'create database treeherder;'
|
||||
script:
|
||||
- npm test
|
||||
- py.test tests/$* --runslow
|
||||
notifications:
|
||||
email:
|
||||
on_success: never
|
||||
on_failure: always
|
||||
|
||||
# Do not run these on the travis server at this time.
|
||||
# The end to end tests require the service to be running, but travis can't
|
||||
# start the service for us. So we would have to have the default point to
|
||||
# a dedicated dev service instance that is reach-able by travis. However, we
|
||||
# require /etc/hosts to have an entry at this point to reach our current dev
|
||||
# server. So these tests should be run only locally for now.
|
||||
# - karma start config/karma-e2e.conf.js --reporters=dots --browsers=Firefox
|
||||
|
|
Загрузка…
Ссылка в новой задаче