diff --git a/.gitignore b/.gitignore index 08cd4a9d5ec..67f5b41b67d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /dist /tmp /deploy +/screenshots # dependencies /node_modules diff --git a/e2e/screenshot.ts b/e2e/screenshot.ts index 46990e695dd..28fad25225a 100644 --- a/e2e/screenshot.ts +++ b/e2e/screenshot.ts @@ -3,7 +3,7 @@ import * as gulp from 'gulp'; import * as path from 'path'; import {browser} from 'protractor'; -const OUTPUT_DIR = '/tmp/angular-material2-build/screenshots/'; +const OUTPUT_DIR = './screenshots/'; let currentJasmineSpecName = ''; @@ -53,5 +53,7 @@ export class Screenshot { } export function screenshot(id: string) { - return new Screenshot(id); + if (process.env['TRAVIS']) { + return new Screenshot(id); + } }