forked from wechaty/wechaty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
50 lines (42 loc) · 1.72 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Language setting http://docs.shippable.com/ci/languages/node/
language: python
python:
- 3.6
# use this to control what branches get built.
# http://docs.shippable.com/ci/advancedOptions/branches/
branches:
only:
- master
- v*.*
env:
global:
- secure: x0+gSTZx9QXVhhnEu+7iRXBEE0O/nGTXAvSJVgc+wx/qPocyB2CQqAf7+UTq3jGsrcdZYKGe8MCgxFOmT2abcv8TQn02LT9LQVsSBo9I72U4tisJcpcbFad4XkjwUXHOMZfndubGgy58GfDTNl/x1v7DB/Olhwu6nlJRYnedj22l8kdEKBpabMmrnogrWesoKKpYbkhR9Vi3XHeZ3FA5hu14wbhq8A2jpcGqh35bDpViAL7f447nPdn20SAFGOrqF3yC/Ws8keG0ChQ2IhQ4cx/ucpGmswUw+ZLJEUCQL0ZlUgkXAAUVeAUAMMywE+yWYLnfDRqnVshRdb6+lHz6VA==
build:
pre_ci_boot:
options: "-v /root/src:/root/src"
# http://docs.shippable.com/ci/shippableyml/#ci
ci:
- curl -sSL -o /tmp/bats_v0.4.0.tar.gz https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz
- tar -xf /tmp/bats_v0.4.0.tar.gz
- sudo bats-0.4.0/install.sh /usr/local
- pwd
- ls -l
- docker run -v "$(pwd)":/mnt nlknguyen/alpine-shellcheck bin/*.sh
- ./scripts/docker.sh build
- ./scripts/docker.sh test
on_success:
- echo $BRANCH
- echo $IS_PULL_REQUEST
- if [ "$BRANCH" == "master" ] && [ "$IS_PULL_REQUEST" == false ]; then curl -X POST -d '{"from":"shippable"}' "$DOCKER_REBUILD_URL"; fi
# Integrations are used to connect external resources to CI
# http://docs.shippable.com/integrations/overview/
integrations:
# http://docs.shippable.com/ci/shippableyml/#notifications
notifications:
# turning of email for PR builds, get notified only on failure and change in status
# http://docs.shippable.com/integrations/notifications/email/
- integrationName: email
type: email
on_success: change
on_failure: change
on_pull_request: never