Puppet Class: role::qunit

Defined in:
puppet/modules/role/manifests/qunit.pp

Overview

Class: role::qunit

Sets up command-line QUnit testing.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'puppet/modules/role/manifests/qunit.pp', line 5

class role::qunit {
    include ::role::mediawiki

    $node_version = hiera('npm::node_version', undef)
    if (!$node_version or $node_version < 10) {
        warning('Running QUnit from the command line requires NodeJS 10. To use it, run `vagrant hiera npm::node_version 10 && vagrant provision`. (Might break other services.)')
    }


    require_package( 'chromium' )

    env::var { 'MW_SERVER':
        value => $::mediawiki::server_url,
    }
    env::var { 'MW_SCRIPT_PATH':
        value => '/w',
    }
    env::var { 'CHROME_BIN':
        value => '/usr/bin/chromium',
    }
}