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
61 lines (49 loc) · 1.57 KB
/
shippable.yml
File metadata and controls
61 lines (49 loc) · 1.57 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
language: python
python:
- 2.6
#env:
# secure: WM9YEelDeKTKwipdJUtfXSkVgT6wyA6VPrVUT20QrhiuxZIluUcMYIrz+0kVk/Y3YgfbQRigQ43cWv4q+Sr253KzJMOqZAs/am33Ut8uLTboN8Hjyb7Y8PRK1B0Wlus+Cku3A0Ub4kXcCmOs00nGdlZNeiOq8wt9N/m2WSQNlZcpXDQZYd0kX7EvfcZiT107hbbhMy87Nv5Z/8UySEcO/CaRz4E4oevn3jwhDyCFWsyn0s1jFa8laQ6Vst+DBGfdd9aBC8sCUgpswWVlkamS9iehriqYtaKCkoiGWoN/QMzp7euSMgI00IwB7Gi6PPbyiy0hOV+KdyZpXsX+aotIwA==
before_install:
- echo "BEFORE INSTALL"
services:
- mysql
- mongodb
install:
- pip install -r requirements.txt
# Make folders for the reports
before_script:
- env
- echo $SHIPPABLE_POSTGRES_CMD
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- echo $MYENV
- date +"%s"
- git log --since=$LAST_SUCCESSFUL_BUILD_TIMESTAMP
- echo $Foo
- echo $Bar
# - git log --pretty='%s (%h: %an)' --since=$LAST_SUCCESSFUL_BUILD_TIMESTAMP
script:
- 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
- mkdir -p vendor
- mkdir -p shippable/buildoutput
- echo 'build output file' > shippable/buildoutput/output.txt
- echo 'this is some file' > vendor/file.txt
- ls -al
after_script:
- echo "AFTER _SCRIPT"
- ls -al
- cp -vr vendor/* ./shippable/buildoutput
after_success:
- echo "AFTR _SUCCESS"
after_failure:
- echo "AFTER_FAILURE"
#archive: true
notifications:
email:
integrations:
hub:
- integrationName: hub
type: quay.io