-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
495 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
16.20.2 | ||
18.20.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,38 @@ 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: | ||
|
@@ -35,6 +50,7 @@ jobs: | |
- yarn build | ||
workspaces: | ||
use: | ||
- modules | ||
- sprite-palette-binaries | ||
create: | ||
name: js-binaries | ||
|
@@ -45,6 +61,8 @@ jobs: | |
script: | ||
- yarn build:css:all | ||
workspaces: | ||
use: | ||
- modules | ||
create: | ||
name: css-binaries | ||
paths: | ||
|
@@ -56,6 +74,7 @@ jobs: | |
- yarn build:doc:kss | ||
workspaces: | ||
use: | ||
- modules | ||
- sprite-palette-binaries | ||
- js-binaries | ||
- css-binaries | ||
|
@@ -69,6 +88,7 @@ jobs: | |
- yarn test:noSnapshots | ||
workspaces: | ||
use: | ||
- modules | ||
- sprite-palette-binaries | ||
- js-binaries | ||
- css-binaries | ||
|
@@ -79,6 +99,7 @@ jobs: | |
- yarn test:snapshots | ||
workspaces: | ||
use: | ||
- modules | ||
- sprite-palette-binaries | ||
- js-binaries | ||
- css-binaries | ||
|
@@ -89,81 +110,89 @@ jobs: | |
- 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' | ||
# script: | | ||
# if [[ "${PR_TITLE}" != *"[skip argos]"* ]]; then | ||
# mkdir ./screenshots | ||
# yarn add puppeteer@"21.11.0" --dev --exact --no-lockfile | ||
# yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop | ||
# fi | ||
# workspaces: | ||
# use: | ||
# - sprite-palette-binaries | ||
# - js-binaries | ||
# - css-binaries | ||
# - docs-binaries | ||
# create: | ||
# name: screenshots-desktop-binaries | ||
# paths: | ||
# - ./screenshots | ||
# - name: '[Argos] Create mobile screenshots' | ||
# stage: 'Screenshots - Create' | ||
# script: | | ||
# if [[ "${PR_TITLE}" != *"[skip argos]"* ]]; then | ||
# mkdir ./screenshots | ||
# yarn add puppeteer@"21.11.0" --dev --exact --no-lockfile | ||
# yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile | ||
# fi | ||
# workspaces: | ||
# use: | ||
# - sprite-palette-binaries | ||
# - js-binaries | ||
# - css-binaries | ||
# - docs-binaries | ||
# create: | ||
# name: screenshots-mobile-binaries | ||
# paths: | ||
# - ./screenshots | ||
# - name: '[Argos] Create kss screenshots' | ||
# stage: 'Screenshots - Create' | ||
# script: | | ||
# if [[ "${PR_TITLE}" != *"[skip argos]"* ]]; then | ||
# mkdir ./screenshots | ||
# yarn add puppeteer@"21.11.0" --dev --exact --no-lockfile | ||
# yarn screenshots --mode kss --screenshot-dir ./screenshots/kss | ||
# fi | ||
# workspaces: | ||
# use: | ||
# - 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: | ||
# - sprite-palette-binaries | ||
# - js-binaries | ||
# - css-binaries | ||
# - docs-binaries | ||
# - screenshots-desktop-binaries | ||
# - screenshots-mobile-binaries | ||
# - screenshots-kss-binaries | ||
- 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' | ||
|
@@ -177,6 +206,8 @@ jobs: | |
deploy: | ||
provider: script | ||
skip-cleanup: true | ||
script: yarn deploy:doc -- --username cozycloud --email [email protected] --repo https://cozy-bot:[email protected]/cozy/cozy-ui.git && yarn semantic-release | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.