How to use the ci-info.TRAVIS function in ci-info

To help you get started, we’ve selected a few ci-info examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dscheerens / ngx-webstorage-service / lib / karma.conf.js View on Github external
fixWebpackSourcePaths: true
        },
        reporters: [
          'mocha',
          'coverage'
        ],
        coverageReporter: {
            type: 'text-summary'
        },
        port: 9876,
        colors: true,
        logLevel: config.LOG_INFO,
        autoWatch: true,
        browserNoActivityTimeout: 30000,
        browsers: [
            ciInfo.TRAVIS           ? 'ChromeTravisCi' :
            chromeHeadlessSupported ? 'ChromeHeadless' :
                                      'Chrome'
        ],
        customLaunchers: {
            ChromeTravisCi: {
                base: 'ChromeHeadless',
                flags: ['--no-sandbox']
            }
        },
        singleRun: false
    });
};
github dscheerens / ngx-webstorage-service / build-tools / gulpfile.ts View on Github external
gulp.task('run.karma', (done: DoneCallback) => {
    const karmaOptions: ExtendedKarmaConfig = {
        frameworks: ['jasmine'],
        browsers: ciInfo.TRAVIS ? ['ChromeTravisCi'] : ['Chrome'],
        customLaunchers: {
            ChromeTravisCi: {
                base: 'Chrome',
                flags: ['--no-sandbox']
            }
        },
        singleRun: true,
        autoWatch: false,
        logLevel: karmaConstants.LOG_INFO,
        reporters: [ 'mocha', 'coverage' ],
        coverageReporter: {
            type: 'text-summary'
        },
        colors: true,
        port: 9876,
        basePath: './',

ci-info

Get details about the current Continuous Integration environment

MIT
Latest version published 1 month ago

Package Health Score

86 / 100
Full package analysis