Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VO-1016] feat: Export types inside npm build #2689

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

feat(Typography): Add types

14494e4
Select commit
Loading
Failed to load commit list.
Draft

[VO-1016] feat: Export types inside npm build #2689

feat(Typography): Add types
14494e4
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch failed Aug 22, 2024 in 3m 54s

Build Failed

The build failed.

Details

This is a normal build for the feat/export-types-inside-npm-build branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build has 14 jobs, running in eight sequential stages.

Stage 1: Install

This stage passed.

Job ENV OS State
15352.1 Install node_modules PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux passed

Stage 2: Prebuild

This stage failed.

Job ENV OS State
15352.2 Lint PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux failed
15352.3 Generate Sprite and Palette PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux passed

Stage 3: Build

This stage canceled.

Job ENV OS State
15352.4 Build JS PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled
15352.5 Build CSS PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled

Stage 4: Docs

This stage canceled.

Job ENV OS State
15352.6 Build docs PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled

Stage 5: Test

This stage canceled.

Job ENV OS State
15352.7 Tests without snapshots PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled
15352.8 Tests snapshots PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled
15352.9 Bundlemon PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled

Stage 6: Screenshots - Create

This stage canceled.

Job ENV OS State
15352.10 [Argos] Create desktop screenshots PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled
15352.11 [Argos] Create mobile screenshots PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled
15352.12 [Argos] Create kss screenshots PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled

Stage 7: Screenshots - Upload

This stage canceled.

Job ENV OS State
15352.13 [Argos] Upload all screenshots PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled

Stage 8: Deploy

This stage canceled.

Job ENV OS State
15352.14 Deploy PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux canceled

Build Configuration

Build Option Setting
Language Node.js
Operating System Linux (Jammy)
Build Configuration
{
  "language": "node_js",
  "os": [
    "linux"
  ],
  "dist": "jammy",
  "cache": {
    "npm": false
  },
  "if": "type NOT IN (pull_request)",
  "env": [
    "global={:PR_TITLE=>\"$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep \\\"title\\\" | head -1)\"}"
  ],
  "stages": [
    {
      "name": "Install"
    },
    {
      "name": "Prebuild"
    },
    {
      "name": "Build"
    },
    {
      "name": "Docs"
    },
    {
      "name": "Test"
    },
    {
      "name": "Screenshots - Create"
    },
    {
      "name": "Screenshots - Upload"
    },
    {
      "name": "Deploy"
    }
  ],
  "install": [
    "true"
  ],
  "jobs": {
    "include": [
      {
        "name": "Install node_modules",
        "stage": "Install",
        "script": [
          "yarn install --frozen-lockfile"
        ],
        "workspaces": {
          "create": {
            "name": "modules",
            "paths": [
              "./node_modules"
            ]
          }
        }
      },
      {
        "name": "Lint",
        "stage": "Prebuild",
        "script": [
          "yarn lint"
        ],
        "if": "commit_message =~ /^((?!\\[only argos\\]).)*$/",
        "workspaces": {
          "use": [
            "modules"
          ]
        }
      },
      {
        "name": "Generate Sprite and Palette",
        "stage": "Prebuild",
        "script": [
          "yarn makeSpriteAndPalette"
        ],
        "workspaces": {
          "use": [
            "modules"
          ],
          "create": {
            "name": "sprite-palette-binaries",
            "paths": [
              "./react/Icon/icons-sprite.js",
              "./react/palette.js"
            ]
          }
        }
      },
      {
        "name": "Build JS",
        "stage": "Build",
        "script": [
          "yarn build"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries"
          ],
          "create": {
            "name": "js-binaries",
            "paths": [
              "./transpiled"
            ]
          }
        }
      },
      {
        "name": "Build CSS",
        "stage": "Build",
        "script": [
          "yarn build:css:all"
        ],
        "workspaces": {
          "use": [
            "modules"
          ],
          "create": {
            "name": "css-binaries",
            "paths": [
              "./dist"
            ]
          }
        }
      },
      {
        "name": "Build docs",
        "stage": "Docs",
        "script": [
          "yarn build:doc:react",
          "yarn build:doc:kss"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries"
          ],
          "create": {
            "name": "docs-binaries",
            "paths": [
              "./build"
            ]
          }
        }
      },
      {
        "name": "Tests without snapshots",
        "stage": "Test",
        "script": [
          "yarn test:noSnapshots"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries"
          ]
        },
        "if": "commit_message =~ /^((?!\\[only argos\\]).)*$/"
      },
      {
        "name": "Tests snapshots",
        "stage": "Test",
        "script": [
          "yarn test:snapshots"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries"
          ]
        },
        "if": "commit_message =~ /^((?!\\[only argos\\]).)*$/"
      },
      {
        "name": "Bundlemon",
        "stage": "Test",
        "script": [
          "yarn bundlemon"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries"
          ]
        },
        "if": "commit_message =~ /^((?!\\[only argos\\]).)*$/"
      },
      {
        "name": "[Argos] Create desktop screenshots",
        "stage": "Screenshots - Create",
        "addons": {
          "chrome": "stable"
        },
        "script": [
          "if [[ \"${PR_TITLE}\" != *\"[skip argos]\"* ]]; then\n  mkdir ./screenshots\n  yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop\nfi\n"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries",
            "docs-binaries"
          ],
          "create": {
            "name": "screenshots-desktop-binaries",
            "paths": [
              "./screenshots"
            ]
          }
        }
      },
      {
        "name": "[Argos] Create mobile screenshots",
        "stage": "Screenshots - Create",
        "addons": {
          "chrome": "stable"
        },
        "script": [
          "if [[ \"${PR_TITLE}\" != *\"[skip argos]\"* ]]; then\n  mkdir ./screenshots\n  yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile\nfi\n"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries",
            "docs-binaries"
          ],
          "create": {
            "name": "screenshots-mobile-binaries",
            "paths": [
              "./screenshots"
            ]
          }
        }
      },
      {
        "name": "[Argos] Create kss screenshots",
        "stage": "Screenshots - Create",
        "addons": {
          "chrome": "stable"
        },
        "script": [
          "if [[ \"${PR_TITLE}\" != *\"[skip argos]\"* ]]; then\n  mkdir ./screenshots\n  yarn screenshots --mode kss --screenshot-dir ./screenshots/kss\nfi\n"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries",
            "docs-binaries"
          ],
          "create": {
            "name": "screenshots-kss-binaries",
            "paths": [
              "./screenshots"
            ]
          }
        }
      },
      {
        "name": "[Argos] Upload all screenshots",
        "stage": "Screenshots - Upload",
        "script": [
          "if [[ \"${PR_TITLE}\" != *\"[skip argos]\"* ]]; then\n  yarn argos:upload --parallel screenshots/reactDesktop/ --token $ARGOS_TOKEN  --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore ''\n  yarn argos:upload --parallel screenshots/reactMobile/ --token $ARGOS_TOKEN  --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore ''\n  yarn argos:upload --parallel screenshots/kss/ --token $ARGOS_TOKEN  --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore ''\nfi\n"
        ],
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries",
            "docs-binaries",
            "screenshots-desktop-binaries",
            "screenshots-mobile-binaries",
            "screenshots-kss-binaries"
          ]
        }
      },
      {
        "name": "Deploy",
        "stage": "Deploy",
        "script": [
          "true"
        ],
        "if": "commit_message =~ /^((?!\\[only argos\\]).)*$/",
        "workspaces": {
          "use": [
            "modules",
            "sprite-palette-binaries",
            "js-binaries",
            "css-binaries",
            "docs-binaries"
          ]
        },
        "deploy": [
          {
            "provider": "script",
            "script": "yarn deploy:doc --username cozycloud --email [email protected] --repo https://cozy-bot:[email protected]/cozy/cozy-ui.git && yarn semantic-release",
            "on": {
              "branch": [
                "master"
              ]
            },
            "skip_cleanup": true
          }
        ]
      }
    ]
  }
}