This file contains hidden or 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
| #!/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) |
This file contains hidden or 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
| image: node | |
| pipelines: | |
| branches: | |
| develop: | |
| - step: | |
| name: Deploy to Test | |
| deployment: test | |
| script: | |
| - echo "Deploying to test..." | |
| - step: |
This file contains hidden or 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
| image: node | |
| pipelines: | |
| default: | |
| - step: | |
| name: Install dependancies | |
| cache: | |
| - node | |
| script: | |
| - npm install | |
| definitions: |
This file contains hidden or 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
| image: node | |
| pipelines: | |
| default: | |
| - step: &run-unit-tests | |
| name: Run Tests | |
| script: | |
| - npm test | |
| branches: | |
| develop: | |
| - step: &deploy-test |
This file contains hidden or 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
| image: node | |
| pipelines: | |
| default: | |
| - step: | |
| script: | |
| - echo "Please use the branch naming convention" | |
| branches: | |
| master: | |
| - step: | |
| name: Deploy to Production |
This file contains hidden or 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
| image: node | |
| pipelines: | |
| default: | |
| - step: | |
| script: | |
| - npm install |
This file contains hidden or 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
| 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: |
This file contains hidden or 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
| 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 |