Commit 48b34a03 authored by Sam Saccone's avatar Sam Saccone Committed by Addy Osmani

Bump test specs (#1623)

* tests: cache node_modules

Move chrome to snapshots

* tests: Bump selenium version

* tests: Bump drool to v0.4.0

* tests: Remove chromedriver download

* test: Remove direct logs call.
parent e0710643
...@@ -5,31 +5,35 @@ ...@@ -5,31 +5,35 @@
sudo: false sudo: false
language: node_js language: node_js
node_js: node_js:
- 'stable' - 'stable'
notifications: notifications:
irc: 'irc.freenode.org#tastejs' irc: 'irc.freenode.org#tastejs'
cache:
directories:
- tooling/node_modules
- tests/node_modules
- node_modules
env: env:
global: global:
# GH_OAUTH_TOKEN is the oauth token generated as described at # GH_OAUTH_TOKEN is the oauth token generated as described at
# https://help.github.com/articles/creating-an-oauth-token-for-command-line-use # https://help.github.com/articles/creating-an-oauth-token-for-command-line-use
# #
# curl -u 'username' -d '{"scopes":["repo"],"note":"push to gh-pages from travis"}' https://api.github.com/authorizations # curl -u 'username' -d '{"scopes":["repo"],"note":"push to gh-pages from travis"}' https://api.github.com/authorizations
# #
# It must be encrypted using the travis gem # It must be encrypted using the travis gem
# http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables # http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables
# #
# travis encrypt GH_OAUTH_TOKEN=XXXXXXXXXXXXXXX # travis encrypt GH_OAUTH_TOKEN=XXXXXXXXXXXXXXX
# #
# User specific env variables # User specific env variables
- secure: 'fHgfjMpYuliwMr2QLnjYZExIViNrxprf9dhXRBLZ6P9Hz7P6m1BMYrI/xEG8X+fFbCi0+n3AXh8SEMHi9ou/Pty/cx12z4w/z3B2BHMxh4XBwpZHs+AB4IXkLiwwWoP4QFy4vTipgYnMDMq9CRhlRbhZEpenQBmaTEc472By1uM=' - secure: 'fHgfjMpYuliwMr2QLnjYZExIViNrxprf9dhXRBLZ6P9Hz7P6m1BMYrI/xEG8X+fFbCi0+n3AXh8SEMHi9ou/Pty/cx12z4w/z3B2BHMxh4XBwpZHs+AB4IXkLiwwWoP4QFy4vTipgYnMDMq9CRhlRbhZEpenQBmaTEc472By1uM='
- GH_OWNER: tastejs - GH_OWNER: tastejs
- GH_PROJECT_NAME: todomvc - GH_PROJECT_NAME: todomvc
- CHROME_PATH: '/home/travis/build/tastejs/todomvc/chrome-linux/chrome' - CHROME_PATH: '/home/travis/build/tastejs/todomvc/chrome-linux/chrome'
before_install: before_install:
- export DISPLAY=:99.0 - export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start - sh -e /etc/init.d/xvfb start
- wget 'https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F362586%2Fchrome-linux.zip?generation=1449027526136000&alt=media' -O chrome.zip && unzip chrome.zip - wget 'https://download-chromium.appspot.com/dl/Linux_x64?type=snapshots' -O chrome.zip && unzip chrome.zip
- curl -Lo chromedriver.zip http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux64.zip && unzip chromedriver.zip
script: script:
# We want to gate on passing tests and a successful build # We want to gate on passing tests and a successful build
- ./test-runner.sh - ./test-runner.sh
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"mocha": "*", "mocha": "*",
"mocha-known-issues-reporter": "git+https://github.com/ColinEberhardt/mocha-known-issues-reporter.git#v0.0.0", "mocha-known-issues-reporter": "git+https://github.com/ColinEberhardt/mocha-known-issues-reporter.git#v0.0.0",
"optimist": "^0.6.1", "optimist": "^0.6.1",
"selenium-webdriver": "~2.46.1", "selenium-webdriver": "~2.53.1",
"drool": "0.2.2" "drool": "0.4.0"
}, },
"scripts": { "scripts": {
"test": "mocha allTests.js --no-timeouts --reporter spec" "test": "mocha allTests.js --no-timeouts --reporter spec"
......
...@@ -53,7 +53,7 @@ module.exports.todoMVCTest = function (frameworkName, baseUrl, speedMode, laxMod ...@@ -53,7 +53,7 @@ module.exports.todoMVCTest = function (frameworkName, baseUrl, speedMode, laxMod
} }
function printCapturedLogs() { function printCapturedLogs() {
var logs = new webdriver.WebDriver.Logs(browser); var logs = browser.manage().logs();
return logs.get('browser') return logs.get('browser')
.then(function (entries) { .then(function (entries) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment