Skip to content

Commit

Permalink
!#5 Add: settings wercker
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Sep 3, 2017
1 parent f099f62 commit 68fa2a4
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions wercker.yml
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:"

0 comments on commit 68fa2a4

Please sign in to comment.