forked from dronekit/dronekit-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
83 lines (73 loc) · 1.85 KB
/
config.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
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
# CircleCI 2.0 configuration file for dronekit-python
# Steps common to both Python 2 and Python 3
common: &commonsteps
steps:
- checkout
- run:
name: Install dronekit with dependencies
command: |
virtualenv venv
source venv/bin/activate
pip install -UI future
pip install -r requirements.txt -UI
pip install . -UI
- run:
name: Run dronekit tests
environment:
SITL_SPEEDUP: 10
SITL_RATE: 200
command: |
source venv/bin/activate
nosetests -svx dronekit.test.unit
nosetests -svx dronekit.test.sitl
- run:
name: Build documentation
command: |
source venv/bin/activate
cd docs; make clean; make html
- store_artifacts:
path: test-reports
destination: test-reports
# Jobs definition
version: 2
jobs:
python2:
docker:
- image: circleci/python:2.7-stretch
working_directory: ~/dronekit-python2
<<: *commonsteps
python3:
docker:
- image: circleci/python:3.6-stretch
working_directory: ~/dronekit-python3
<<: *commonsteps
deploy:
name: Deploy to dronekit.io
working_directory: ~/deploy
machine: true
steps:
- checkout
- run:
name: update docs
command: ./scripts/update-docs.sh
# Send a notification on Gitter
notify:
webhooks:
- url: https://webhooks.gitter.im/e/27b0e1a9fede99dbbe6c
# Workflow definition
# Run Python 2 and Python 3 testing in parallel
# and deploy if the Python 2 build succeeds
workflows:
version: 2
build_test_deploy:
jobs:
- python2
- python3
# disabling until we find a new docs server
# - deploy:
# requires:
# - python2
# filters:
# branches:
# only:
# - master