<commit_before>package OpenSourceProjects_Storybook.buildTypes

import jetbrains.buildServer.configs.kotlin.v2017_2.*
import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher
import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script
import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.vcs

object OpenSourceProjects_Storybook_Test : BuildType({
    uuid = "9f9177e7-9ec9-4e2e-aabb-d304fd667711"
    id = "OpenSourceProjects_Storybook_Test"
    name = "Test"

    vcs {
        root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster)

    }

    steps {
        script {
            name = "Bootstrap"
            scriptContent = """
                yarn
                yarn bootstrap --core
            """.trimIndent()
            dockerImage = "node:latest"
        }
        script {
            name = "Test"
            scriptContent = """
                yarn test --core --coverage --runInBand --teamcity
                yarn coverage<commit_msg>TeamCity change in 'Open-source projects :: Storybook' project: general settings of 'Test' build configuration were updated<commit_after>package OpenSourceProjects_Storybook.buildTypes

import jetbrains.buildServer.configs.kotlin.v2017_2.*
import jetbrains.buildServer.configs.kotlin.v2017_2.buildFeatures.commitStatusPublisher
import jetbrains.buildServer.configs.kotlin.v2017_2.buildSteps.script
import jetbrains.buildServer.configs.kotlin.v2017_2.triggers.vcs

object OpenSourceProjects_Storybook_Test : BuildType({
    uuid = "9f9177e7-9ec9-4e2e-aabb-d304fd667711"
    id = "OpenSourceProjects_Storybook_Test"
    name = "Test"

    artifactRules = "coverage/lcov-report => coverage.zip"

    vcs {
        root(OpenSourceProjects_Storybook.vcsRoots.OpenSourceProjects_Storybook_HttpsGithubComStorybooksStorybookRefsHeadsMaster)

    }

    steps {
        script {
            name = "Bootstrap"
            scriptContent = """
                yarn
                yarn bootstrap --core
            """.trimIndent()
            dockerImage = "node:latest"
        }
        script {
            name = "Test"
            scriptContent = """
                yarn test --core --coverage --runInBand --teamcity
                yarn coverage
{'fraction_non_alphanumeric': 0.08297320656871218, 'fraction_numerical': 0.033707865168539325, 'mean_word_length': 2.6863057324840764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1120430', 'n_tokens_mistral': 781, 'n_tokens_neox': 688, 'n_words': 106}