forked from shadow-robot/build-servers-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshippable.yml
23 lines (21 loc) · 1.3 KB
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: python
python:
- 2.7
# codecov token and slack web hook URL (encrypted)
env:
- secure: BCgpnH0qoAyPf3ScsgE6gMqAjmOjLmzwJdaCNvL8WrhsQ+8XDkCcq8Sto3w+U/0gbxWQ88RVLGvnzDzQk4xKP1W8vlAB1czllVs3PDV6grsL05FYBfOm4/tUmTRk/YhhGGgQDCi+zi83NNphjrYprPhvJM9HV1PDViXIkhiX5qi6GKmiG2xVWixdTcfDnRl2B8SciL8g4yCc5ByhOeMG2YlqdQa9Ph/sfOQ0aTed32wLI3YuZoTCnz+hP1L0PEi1/aupT/3+Pg1KmeJL+nd2L6517vEf6SIeqpPYkiwAx790Tx2sPY02G7EGbcrpiNceTHB7nqFMzyCRUUIBJ4oW6Q==
build:
pre_ci_boot:
image_name: shadowrobot/build-tools
image_tag: trusty-indigo
pull: true
ci:
- sudo apt-get update
- sudo apt-get install curl -y
- export toolset_branch="master"
- export server_type="shippable"
- export used_modules="check_cache,check_build,code_style_check,check_deb_make,code_coverage"
- export remote_shell_script="https://raw.githubusercontent.com/shadow-robot/sr-build-tools/$toolset_branch/bin/sr-run-ci-build.sh"
- curl -s "$( echo "$remote_shell_script" | sed 's/#/%23/g' )" | bash /dev/stdin "$toolset_branch" $server_type $used_modules
on_failure:
- curl -X POST --data-urlencode "payload={\"channel\":\"#bots\", \"username\":\"shippable\", \"text\":\"[$SHIPPABLE_REPO_SLUG branch $BRANCH] <$BUILD_URL|Build $SHIPPABLE_BUILD_NUMBER> failed\", \"icon_emoji\":\":monkey_face:\"}" $SLACK_WEB_HOOK_URL