Created
August 24, 2019 18:15
-
-
Save jamesfacts/a81079518cd8c12098c5aee111db245c to your computer and use it in GitHub Desktop.
Sample Circle CI config file
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
# 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