From 434d35b4118d9da86d60b0a1ef00ccc2f1e39e6e Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Thu, 5 Sep 2024 15:19:47 +0200 Subject: [PATCH] chore: Disable travis CI --- .travis.yml | 409 ++++++++++++++++++++++++++-------------------------- 1 file changed, 205 insertions(+), 204 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1836d7069..f844e58f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,210 +6,211 @@ if: type NOT IN (pull_request) # we run CI only on branches, not PR branches: except: - /^\d+\.\d+\.\d+$/ # we don't want to run CI on tag after new publication -env: - global: - - PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) -stages: - - Install - - Prebuild - - Build - - Docs - - Test - - Screenshots - Create - - Screenshots - Upload - - Deploy +# env: +# global: +# - PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1) +# stages: +# - Install +# - Prebuild +# - Build +# - Docs +# - Test +# - Screenshots - Create +# - Screenshots - Upload +# - 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\]).)*$/ # skipped if commit message contains "[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\]).)*$/ # skipped if commit message contains "[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\]).)*$/ # skipped if commit message contains "[only argos]" - - name: 'Bundlemon' - stage: 'Test' - script: - - yarn bundlemon - workspaces: - use: - - modules - - sprite-palette-binaries - - js-binaries - - css-binaries - if: commit_message =~ /^((?!\[only argos\]).)*$/ # skipped if commit message contains "[only argos]" - - name: '[Argos] Create desktop screenshots' - stage: 'Screenshots - Create' - addons: - chrome: stable - script: | - if [[ "${PR_TITLE}" != *"[skip argos]"* ]]; then - mkdir ./screenshots - yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop - fi - 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 - mkdir ./screenshots - yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile - fi - 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 - mkdir ./screenshots - yarn screenshots --mode kss --screenshot-dir ./screenshots/kss - fi - 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 - yarn argos:upload --parallel screenshots/reactDesktop/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore '' - yarn argos:upload --parallel screenshots/reactMobile/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore '' - yarn argos:upload --parallel screenshots/kss/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore '' - fi - 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\]).)*$/ # skipped if commit message contains "[only argos]" - workspaces: - use: - - modules - - sprite-palette-binaries - - js-binaries - - css-binaries - - docs-binaries - deploy: - provider: script - skip-cleanup: true - script: yarn deploy:doc --username cozycloud --email contact@cozycloud.cc --repo https://cozy-bot:$GH_TOKEN@github.com/cozy/cozy-ui.git && yarn semantic-release - on: - branch: master + - script: echo true +# - 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\]).)*$/ # skipped if commit message contains "[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\]).)*$/ # skipped if commit message contains "[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\]).)*$/ # skipped if commit message contains "[only argos]" +# - name: 'Bundlemon' +# stage: 'Test' +# script: +# - yarn bundlemon +# workspaces: +# use: +# - modules +# - sprite-palette-binaries +# - js-binaries +# - css-binaries +# if: commit_message =~ /^((?!\[only argos\]).)*$/ # skipped if commit message contains "[only argos]" +# - name: '[Argos] Create desktop screenshots' +# stage: 'Screenshots - Create' +# addons: +# chrome: stable +# script: | +# if [[ "${PR_TITLE}" != *"[skip argos]"* ]]; then +# mkdir ./screenshots +# yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop +# fi +# 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 +# mkdir ./screenshots +# yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile +# fi +# 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 +# mkdir ./screenshots +# yarn screenshots --mode kss --screenshot-dir ./screenshots/kss +# fi +# 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 +# yarn argos:upload --parallel screenshots/reactDesktop/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore '' +# yarn argos:upload --parallel screenshots/reactMobile/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore '' +# yarn argos:upload --parallel screenshots/kss/ --token $ARGOS_TOKEN --parallel-total 3 --parallel-nonce $TRAVIS_BUILD_ID --ignore '' +# fi +# 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\]).)*$/ # skipped if commit message contains "[only argos]" +# workspaces: +# use: +# - modules +# - sprite-palette-binaries +# - js-binaries +# - css-binaries +# - docs-binaries +# deploy: +# provider: script +# skip-cleanup: true +# script: yarn deploy:doc --username cozycloud --email contact@cozycloud.cc --repo https://cozy-bot:$GH_TOKEN@github.com/cozy/cozy-ui.git && yarn semantic-release +# on: +# branch: master