Skip to content

Instantly share code, notes, and snippets.

@jamesfacts
Created August 24, 2019 18:15
Show Gist options
  • Save jamesfacts/a81079518cd8c12098c5aee111db245c to your computer and use it in GitHub Desktop.
Save jamesfacts/a81079518cd8c12098c5aee111db245c to your computer and use it in GitHub Desktop.
Sample Circle CI config file
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
build:
docker:
- image: circleci/node:7.10
working_directory: ~/wp-content/plugins/nbt-blocks
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- dependency-cache-{{ checksum "package.json" }}
- run: npm install
- save_cache:
paths:
- node_modules
key: dependency-cache-{{ checksum "package.json" }}
# TO DO run tests!
- run:
name: build gutenblocks
command: npm run build
- run:
name: Deploy to WPE
command: |
chmod +x deploy.sh
./deploy.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment