-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathwercker.yml
33 lines (32 loc) · 1.17 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
box: wercker/default
build:
steps:
- validate-wercker-step
# The tests below need a valid slack token exposed as environment varialbe
# CORRECT_SLACK_TOKEN
# - script:
# name: "test: Successful notify"
# code: |
# source ./tests/helper.sh
# export WERCKER_SLACK_NOTIFY_SUBDOMAIN="wercker"
# export WERCKER_SLACK_NOTIFY_TOKEN=$CORRECT_SLACK_TOKEN
# export WERCKER_SLACK_NOTIFY_CHANNEL="product"
# export WERCKER_DEPLOY_URL="http://wercker.com"
# export DEPLOY=true
# source ./run.sh
# - script:
# name: test: Subdomain does not exist
# code: |
# bash ./tests/test_invalid_subdomain.sh $CORRECT_SLACK_TOKEN
# - script:
# name: test: Invalid token
# code: |
# bash ./tests/test_invalid_token.sh $CORRECT_SLACK_TOKEN
# - script:
# name: test: Channel does not exist
# code: |
# bash ./tests/test_channel_does_not_exist.sh $CORRECT_SLACK_TOKEN
# - script:
# name: test: Channel starts with hash
# code: |
# bash ./tests/test_channel_starts_with_hash.sh $CORRECT_SLACK_TOKEN