mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-27 09:49:09 +01:00
Remove chromatic integration
Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -63,9 +63,7 @@ pipeline {
|
||||
stage('Check') {
|
||||
steps {
|
||||
catchError(buildResult: 'UNSTABLE', stageResult: 'UNSTABLE') {
|
||||
withCheckEnvironment {
|
||||
gradle 'check'
|
||||
}
|
||||
gradle 'check'
|
||||
}
|
||||
junit allowEmptyResults: true, testResults: '**/build/test-results/test/TEST-*.xml,**/build/test-results/tests/test/TEST-*.xml,**/build/jest-reports/TEST-*.xml'
|
||||
}
|
||||
@@ -285,10 +283,6 @@ boolean isBuildSuccess() {
|
||||
return currentBuild.result == null || currentBuild.result == 'SUCCESS'
|
||||
}
|
||||
|
||||
void withCheckEnvironment(Closure<Void> closure) {
|
||||
closure.call()
|
||||
}
|
||||
|
||||
void withPublishEnvironment(Closure<Void> closure) {
|
||||
withCredentials([
|
||||
usernamePassword(credentialsId: 'packages-scm-manager-org', usernameVariable: 'ORG_GRADLE_PROJECT_packagesScmManagerUsername', passwordVariable: 'ORG_GRADLE_PROJECT_packagesScmManagerPassword'),
|
||||
|
||||
2
gradle/changelog/remove_chromatic.yaml
Normal file
2
gradle/changelog/remove_chromatic.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
- type: removed
|
||||
description: Chromatic integration
|
||||
@@ -114,35 +114,13 @@ task test(type: YarnTask) {
|
||||
}
|
||||
}
|
||||
|
||||
task chromatic(type: YarnTask) {
|
||||
args = ['run', 'chromatic']
|
||||
workingDir = file('ui-components')
|
||||
inputs.files(fileTree(project.projectDir) {
|
||||
include 'ui-components/src/**'
|
||||
include 'ui-components/.storybook/**'
|
||||
})
|
||||
.withPathSensitivity(PathSensitivity.RELATIVE)
|
||||
outputs.file('build/tmp/chromatic/marker')
|
||||
|
||||
enabled = System.getenv('CHROMATIC_PROJECT_TOKEN') != null
|
||||
ignoreExitValue = project.isCI
|
||||
dependsOn('yarn_install')
|
||||
|
||||
doLast {
|
||||
File directory = new File(project.buildDir, 'tmp/chromatic')
|
||||
directory.mkdirs()
|
||||
File marker = new File(directory, 'marker')
|
||||
marker.createNewFile()
|
||||
}
|
||||
}
|
||||
|
||||
task updateUiTestTimestamps(type: TouchFiles) {
|
||||
directory = project.file('build/jest-reports')
|
||||
extension = "xml"
|
||||
}
|
||||
|
||||
task check {
|
||||
dependsOn('typecheck', 'test', 'chromatic', 'checkLicenses', 'lint', 'depcheck')
|
||||
dependsOn('typecheck', 'test', 'checkLicenses', 'lint', 'depcheck')
|
||||
}
|
||||
|
||||
yarn_install {
|
||||
|
||||
@@ -14,21 +14,20 @@
|
||||
"test": "jest",
|
||||
"typecheck": "tsc",
|
||||
"build-storybook": "build-storybook",
|
||||
"chromatic": "chromatic --project-token=${CHROMATIC_PROJECT_TOKEN} --skip '@(snyk-**|dependabot/**)'",
|
||||
"storybook": "start-storybook -s ../ui-webapp/public",
|
||||
"storyshots": "jest --testPathPattern=\"storyshots.test.ts\" --collectCoverage=false",
|
||||
"update-storyshots": "jest --testPathPattern=\"storyshots.test.ts\" --collectCoverage=false -u"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@scm-manager/ui-syntaxhighlighting": "2.45.3-SNAPSHOT",
|
||||
"@scm-manager/ui-shortcuts": "2.45.3-SNAPSHOT",
|
||||
"@scm-manager/ui-text": "2.45.3-SNAPSHOT",
|
||||
"@scm-manager/babel-preset": "^2.13.1",
|
||||
"@scm-manager/eslint-config": "^2.17.0",
|
||||
"@scm-manager/jest-preset": "^2.13.0",
|
||||
"@scm-manager/prettier-config": "^2.10.1",
|
||||
"@scm-manager/tsconfig": "^2.13.0",
|
||||
"@scm-manager/ui-shortcuts": "2.45.3-SNAPSHOT",
|
||||
"@scm-manager/ui-syntaxhighlighting": "2.45.3-SNAPSHOT",
|
||||
"@scm-manager/ui-tests": "2.45.3-SNAPSHOT",
|
||||
"@scm-manager/ui-text": "2.45.3-SNAPSHOT",
|
||||
"@storybook/addon-actions": "^6.4.20",
|
||||
"@storybook/addon-essentials": "^6.4.20",
|
||||
"@storybook/addon-interactions": "^6.4.20",
|
||||
@@ -48,7 +47,6 @@
|
||||
"@types/styled-components": "^5.1.25",
|
||||
"@types/to-camel-case": "^1.0.0",
|
||||
"@types/unist": "^2.0.3",
|
||||
"chromatic": "^5.8.0",
|
||||
"css": "^3.0.0",
|
||||
"enzyme-context": "^1.1.2",
|
||||
"enzyme-context-react-router-4": "^2.0.0",
|
||||
@@ -108,4 +106,4 @@
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user