Skip to content

Commit

Permalink
Merge pull request #18 from GravityKit/go-live-checklist
Browse files Browse the repository at this point in the history
"Go Live" items
  • Loading branch information
zackkatz authored Jun 27, 2024
2 parents f14895d + 2faf62c commit 30a8cd5
Show file tree
Hide file tree
Showing 123 changed files with 12,797 additions and 5,168 deletions.
70 changes: 70 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
version: 2.1

anchors:
context: &context
context: shared

default_job_config: &default_job_config
working_directory: /home/circleci/plugin
machine:
image: default

jobs:
build_package_release:
<<: *default_job_config
steps:
- checkout
- run:
name: Getting GK test/build tools
command: |
git clone [email protected]:GravityKit/Tooling.git /home/circleci/tooling
- restore_cache:
key: node-dependencies-{{ checksum "package-lock.json" }}
- run:
name: Installing dependencies
command: |
/home/circleci/tooling/build-tools/build_tools.sh npm -o install
/home/circleci/tooling/build-tools/build_tools.sh composer -o "install --no-dev"
- save_cache:
key: node-dependencies-{{ checksum "package-lock.json" }}
paths:
- node_modules
- run:
name: Building and packaging
command: |
/home/circleci/tooling/build-tools/build_tools.sh grunt
if [ "${CIRCLE_BRANCH}" != "main" ]; then
/home/circleci/tooling/build-tools/build_tools.sh package_build -o "gravityview-dashboard gravityview-dashboard-views.php --include-hash"
else
/home/circleci/tooling/build-tools/build_tools.sh package_build -o "gravityview-dashboard gravityview-dashboard-views.php $([[ $(git log -n 1 | grep "\[skip release\]") ]] && echo --include-hash)"
fi
mkdir -p gravityview-dashboard
mv vendor gravityview-dashboard
mv build gravityview-dashboard
zip -gr $(ls gravityview-dashboard-*.zip) gravityview-dashboard build
mkdir .release
cp gravityview-dashboard-*.zip .release
- run:
name: Creating a GitHub release
command: |
if [ "${CIRCLE_BRANCH}" == "main" ]; then
git config user.email "[email protected]"
git config user.name "GravityKit - CI"
/home/circleci/tooling/build-tools/build_tools.sh create_release -o "gravityview-dashboard-views.php $(ls gravityview-dashboard-*.zip)"
fi
- run:
name: Notifying GravityKit Release Manager
command: |
if ! [[ $(git log -n 1 | grep "\[skip notify\]") ]]; then
/home/circleci/tooling/build-tools/build_tools.sh announce_build -o "gravityview-dashboard-views.php $(ls gravityview-dashboard-*.zip) --with-circle"
fi
- store_artifacts:
path: .release
destination: release

workflows:
version: 2
test_and_package:
jobs:
- build_package_release:
<<: *context
16 changes: 14 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# Auto detect text files and perform LF normalization
* text=auto
.circleci export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.husky export-ignore
composer.json export-ignore
composer.lock export-ignore
Gruntfile.js export-ignore
package-lock.json export-ignore
package.json export-ignore
phpcs.xml.dist export-ignore
readme.md export-ignore
translations.pot export-ignore

assets export-ignore
29 changes: 4 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
# ignore everything in the root except the "wp-content" directory.
!wp-content/

# ignore everything in the "wp-content" directory, except:
# "mu-plugins", "plugins", "themes" directory
wp-content/*
!wp-content/mu-plugins/
!wp-content/plugins/
!wp-content/themes/

# ignore these plugins
wp-content/plugins/hello.php

# ignore specific themes
wp-content/themes/twenty*/

# ignore node dependency directories
node_modules/

# ignore log files and databases
*.log
*.sql
*.sqlite

.DS_Store
node_modules
vendor

.sass-cache
build
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 30a8cd5

Please sign in to comment.