-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
105 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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:" |