File tree Expand file tree Collapse file tree 2 files changed +66
-44
lines changed Expand file tree Collapse file tree 2 files changed +66
-44
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ build :
4
+ docker :
5
+ - image : circleci/python:2.7.15-stretch
6
+ steps :
7
+ - checkout
8
+ - run :
9
+ name : Update packages
10
+ command : sudo apt-get update
11
+ - run :
12
+ name : Install osm2pgsql
13
+ command : sudo apt-get install osm2pgsql proj-data
14
+ - run :
15
+ name : Start PostgreSQL
16
+ # note the double "sudo" here: once to get to root, and again to get
17
+ # to postgres. normally, one would just sudo directly to postgres, but
18
+ # that asked for the circleci user's password, which meant it failed.
19
+ # this could probably be fixed by whitelisting the createuser command
20
+ # in /etc/sudoers, but this was quicker (although more confusing,
21
+ # sorry).
22
+ command : |
23
+ sudo service postgresql start
24
+ sudo sudo -u postgres createuser -s circleci
25
+ - restore_cache :
26
+ key : python-requirements-{{ .Branch }}-{{ checksum "requirements.txt" }}
27
+ - run :
28
+ name : Install Pip dependencies
29
+ command : |
30
+ virtualenv ~/env
31
+ . ~/env/bin/activate
32
+ pip install -Ur requirements.txt
33
+ - save_cache :
34
+ key : python-requirements-{{ .Branch }}-{{ checksum "requirements.txt" }}
35
+ paths :
36
+ - " ~/env"
37
+ - run :
38
+ name : Setup.py develop
39
+ command : |
40
+ . ~/env/bin/activate
41
+ python setup.py develop
42
+ - run :
43
+ name : Download fixture data
44
+ command : |
45
+ . ~/env/bin/activate
46
+ python integration-test/__init__.py --download-only
47
+ - run :
48
+ name : Install flake8
49
+ command : |
50
+ . ~/env/bin/activate
51
+ pip install -U flake8
52
+ - run :
53
+ name : Check PEP8 compliance
54
+ command : |
55
+ . ~/env/bin/activate
56
+ find . -not -path '*/.eggs/*' -not -path '*/data/*' -name '*.py' | xargs flake8
57
+ - run :
58
+ name : Unit tests
59
+ command : |
60
+ . ~/env/bin/activate
61
+ python setup.py test
62
+ - run :
63
+ name : Integration tests
64
+ command : |
65
+ . ~/env/bin/activate
66
+ python integration-test/__init__.py
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments