diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000..b921990 --- /dev/null +++ b/wercker.yml @@ -0,0 +1,105 @@ +box: python:3.6.1 +dev: + steps: + - script: + name: install shellcheck + code: | + sudo apt-get update + sudo apt-get install -y shellcheck + - script: + name: install dependences + code: make install env=dev +# Build definition +build: + # The steps that will be executed on build + steps: + + - add-ssh-key: + keyname: GITHUB_KEY + host: github.com + - add-to-known_hosts: + hostname: github.com + fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 + + - script: + name: install shellcheck + code: | + sudo apt-get update + sudo apt-get install -y shellcheck + - script: + name: install dependences + code: | + make install env=dev + + after-steps: + - install-packages: + packages: ruby + + - script: + name: Show vars env + code: | + env + + - wantedly/pretty-slack-notify: + webhook_url: $SLACK_WEBHOOK_URL + channel: $SLACK_CHANNEL + username: $SLACK_USERNAME + passed_message: "yay :smile:" + +# Testing definition +test: + steps: + + - add-ssh-key: + keyname: GITHUB_KEY + host: github.com + + - add-to-known_hosts: + hostname: github.com + fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 + + - script: + name: Show vars env + code: | + env + + - script: + name: install shellcheck + code: | + sudo apt-get update + sudo apt-get install -y shellcheck + + - script: + name: install dependences + code: | + make install env=test + + - script: + name: Run lint code + code: | + make lint + + - script: + name: "Set environment variables" + code: | + export MY_VAR=you are happy + + - script: + name: Run tests + code: | + make test + + after-steps: + - install-packages: + packages: ruby + + - script: + name: Show vars env + code: | + env + + - wantedly/pretty-slack-notify: + webhook_url: $SLACK_WEBHOOK_URL + channel: $SLACK_CHANNEL + username: $SLACK_USERNAME + passed_message: "yay :smile:"