forked from buildsample/sample_python
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathshippable.yml
More file actions
executable file
·98 lines (83 loc) · 2.16 KB
/
shippable.yml
File metadata and controls
executable file
·98 lines (83 loc) · 2.16 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Language setting
language: python
# Version number
python:
- 2.7
# - 3.2
# - 3.3
# - 3.5
#services:
# - cassandra
#runtime:
# nodePool: shippable_shared_aarch32
#matrix:
## include:
# - python: 2.7
# env: RUNTIME=Ubuntu_14
# nodePool: dynamic_u14_xlarge
# - python: 2.7
# env: RUNTIME=Ubuntu_16
# nodePool: dynamic_u16_xlarge
# - python: 2.7
# nodePool: shippable_shared_aarch32
build:
#cache: true
#cache_dir_list:
# - $SHIPPABLE_BUILD_DIR/shippable.yml
# pre_ci_boot:
# image_name: ric03uec/sample_python ##replace with your repo and image name
# image_tag: aarch64
ci:
- uname -a
- echo "Hello, World!"
- cat $SHIPPABLE_BUILD_DIR/build_number || true
- echo $SHIPPABLE_BUILD_NUMBER > $SHIPPABLE_BUILD_DIR/build_number
#- env
#- env | grep RUNTIME
#- python --version | echo
#- sleep 10
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- pip install -r requirements.txt
- nosetests test.py --with-xunit --xunit-file=shippable/testresults/nosetests.xml
- which python && coverage run --branch test.py
- which python && coverage xml -o shippable/codecoverage/coverage.xml test.py
- docker --version
- docker ps -a
- docker images
- sleep 30
- docker build -t ric03uec/sample_python:arm .
- docker push ric03uec/sample_python:arm
# - python $SHIPPABLE_BUILD_DIR/ttyTest.py
push:
- echo "PUSH step done"
- ls -al
on_failure:
- echo "The job failed!!!!!"
on_success:
- echo "The job succeeded!!!!"
#integrations:
# notifications:
# - integrationName: email
# type: email
# recipients:
# - devashish@shippable.com
# on_success: always
# on_failure: always
# on_pull_request: never
# on_start: never
#integrations:
# notifications:
# - integrationName: ric03uec-event1
# type: webhook
# on_success: always
# on_failure: always
# on_pull_request: never
# on_start: never
integrations:
hub:
- integrationName: reg_dh_ric03uec
type: dockerRegistryLogin
branches:
only:
- master