Skip to content

Instantly share code, notes, and snippets.

View gavinhughpalmer's full-sized avatar

Gavin Palmer gavinhughpalmer

View GitHub Profile
@gavinhughpalmer
gavinhughpalmer / osx_bootstrap.sh
Last active March 25, 2021 14:37 — forked from codeinthehole/osx_bootstrap.sh
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
image: node
pipelines:
branches:
develop:
- step:
name: Deploy to Test
deployment: test
script:
- echo "Deploying to test..."
- step:
image: node
pipelines:
default:
- step:
name: Install dependancies
cache:
- node
script:
- npm install
definitions:
image: node
pipelines:
default:
- step: &run-unit-tests
name: Run Tests
script:
- npm test
branches:
develop:
- step: &deploy-test
image: node
pipelines:
default:
- step:
script:
- echo "Please use the branch naming convention"
branches:
master:
- step:
name: Deploy to Production
image: node
pipelines:
default:
- step:
script:
- npm install
image: salesforce/salesforcedx
pipelines:
default:
- step:
name: Run Static Analysis
image: ghpalmer/staticanalysis
script:
- pmd -d ./force-app/ -R "./apex-ruleset.xml" -f text -l apex
- cpd --minimum-tokens 100 --files ./force-app/ --language apex
- step:
image: ghpalmer/sfdx-ci
pipelines:
default:
- step: &run-static-analysis
name: Run Static Analysis
cache:
- pmd
image: ghpalmer/staticanalysis
script:
- ./build/static-analysis/run-analysis.sh