- Python 3
- Pip 3
$ brew install python3| // check version | |
| node -v || node --version | |
| // list locally installed versions of node | |
| nvm ls | |
| // list remove available versions of node | |
| nvm ls-remote | |
| // install specific version of node |
| ENVPATH ?= .venv | |
| all: help | |
| help: ## Show available targets message | |
| @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[$$()% 0-9a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | |
| ## Configure virtual environment and install dependencies | |
| venv-configure: ## Configure virtual environment and install dependencies | |
| @echo ">>> Configure virtual environment..." |
| # must be unique in a given SonarQube instance | |
| sonar.projectKey=my:project | |
| # this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. | |
| sonar.projectName=My project | |
| sonar.projectVersion=1.0 | |
| # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. | |
| # Since SonarQube 4.2, this property is optional if sonar.modules is set. | |
| # If not set, SonarQube starts looking for source code from the directory containing | |
| # the sonar-project.properties file. |
| node { | |
| // Mark the code checkout 'stage'.... | |
| stage 'Checkout' | |
| checkout scm | |
| stage 'Configure' | |
| env.PATH = "${tool 'Maven 3'}/bin:${env.PATH}" | |
| // Mark the code build 'stage'.... | |
| stage('Build') { |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \[\033[32m\]\W\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " |
| [color] | |
| ui = auto | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| [core] | |
| pager = less -FRX | |
| [alias] |