Skip to content

Commit

Permalink
ci: improve composer install and publishing of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
matzeeable committed Feb 10, 2020
1 parent 15dd378 commit 44e2f38
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ cache: &cache # see https://gitlab.com/gitlab-org/gitlab-runner/issues/2838#note
# Only go on with the job if lerna detected changes
.lerna changes:
before_script:
- "[ ! -f $JOB_PACKAGE_FOLDER/$JOB_PACKAGE_NAME/.publish ] && echo $LERNA_SKIP_MESSAGE && exit 0"
- "[ ! -f $JOB_PACKAGE_FOLDER/$JOB_PACKAGE_NAME/.publish ] && [ ! $LERNA_CHANGES_FORCE ] && echo $LERNA_SKIP_MESSAGE && exit 0"

# Initial installation so the cache gets filled
install:
Expand Down
2 changes: 1 addition & 1 deletion devops/.gitlab/stage-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ docker review start:
- yarn docker-compose:traefik --project-directory "$JOB_MOUNT_PATH/devops/docker-compose" up --build -d
- export WP_WAIT_CONTAINER=$(yarn --silent docker-compose:traefik:name-wordpress)
# Collect all builds and copy them to the container, and wait for the plugin until it is ready
- for slug in $(yarn --silent workspace:slugs); do for dirs in $(find plugins/$slug/build/* -maxdepth 0 -type d 2>/dev/null); do docker cp $dirs $WP_WAIT_CONTAINER:/var/www/html/wp-content/plugins/; done; done;
- for slug in $(yarn --silent workspace:slugs); do for dirs in $(find plugins/$slug/build/$slug* -maxdepth 0 -type d 2>/dev/null); do docker cp $dirs $WP_WAIT_CONTAINER:/var/www/html/wp-content/plugins/; done; done;
- yarn wp-wait
tags: [traefik]
only:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"scripts": {
"postinstall": "patch-package --patch-dir common/patch-package",
"bootstrap": "yarn install$(test $CI && echo ' --frozen-lockfile') && lerna exec -- yarn install$(test $CI && echo ' --frozen-lockfile') && lerna link && lerna run bootstrap --parallel && patch-package --patch-dir common/patch-package",
"bootstrap": "yarn install$(test $CI && echo ' --frozen-lockfile') && lerna exec -- yarn install$(test $CI && echo ' --frozen-lockfile') && lerna link && lerna run bootstrap && patch-package --patch-dir common/patch-package",
"docker:start": "yarn docker-compose up --build -d && concurrently --raw \"yarn docker-compose logs -f -t --tail=10\" \"yarn --silent wp-wait && yarn --silent docker:start:dev\"",
"docker:start:dev": "concurrently --raw \"TS_NODE_PROJECT=common/tsconfig.json yarn parallel-webpack --no-stats --config common/webpack.multi.ts --watch\" \"WORKSPACE_COMMAND='IS_DOCKER_START_COMMAND=1 yarn dev' yarn --silent workspace:concurrently\"",
"docker:stop": "yarn docker-compose stop",
Expand Down
3 changes: 0 additions & 3 deletions plugins/wp-reactjs-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"yarn": ">=1.19.1"
},
"homepage": "https://matthias-web.com",
"apidoc": {
"sampleUrl": "/wp-json"
},
"files": [
"types/"
],
Expand Down

0 comments on commit 44e2f38

Please sign in to comment.