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

chore: Adjust Travis CI to work again #2688

Merged
merged 1 commit into from
Aug 14, 2024

chore: Adjust Travis CI to work again

7a22b20
Select commit
Loading
Failed to load commit list.
Merged

chore: Adjust Travis CI to work again #2688

chore: Adjust Travis CI to work again
7a22b20
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch succeeded Aug 14, 2024 in 17m 30s

Build Passed

The build passed, just like the previous build.

Details

This is a normal build for the chore/ci-travis 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
15329.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 passed.

Job ENV OS State
15329.2 Lint PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux passed
15329.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 passed.

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

Stage 4: Docs

This stage passed.

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

Stage 5: Test

This stage passed.

Job ENV OS State
15329.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 passed
15329.8 Tests snapshots PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux passed
15329.9 Bundlemon PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) Linux passed

Stage 6: Screenshots - Create

This stage passed.

Job ENV OS State
15329.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 passed
15329.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 passed
15329.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 passed

Stage 7: Screenshots - Upload

This stage passed.

Job ENV OS State
15329.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 passed

Stage 8: Deploy

This stage passed.

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

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": [
            "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\nyarn semantic-release\n",
            "on": {
              "branch": [
                "master"
              ]
            },
            "skip_cleanup": true
          }
        ]
      }
    ]
  }
}