File tree 1 file changed +55
-0
lines changed 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2.1
2
+
3
+ jobs :
4
+ verify_build :
5
+ working_directory : ~/repo
6
+ docker :
7
+ - image : circleci/python:<< parameters.python >>
8
+ parameters :
9
+ python :
10
+ type : string
11
+ steps :
12
+ - checkout
13
+ - restore_cache :
14
+ keys :
15
+ - v1-dependencies-<< parameters.python >>-{{ checksum "setup.py" }}
16
+ # fallback to using the latest cache if no exact match is found
17
+ - v1-dependencies-<< parameters.python >>--
18
+ - run :
19
+ name : Install Dependencies
20
+ command : |
21
+ pip install virtualenv
22
+ virtualenv venv
23
+ source venv/bin/activate
24
+ pip install .[dev]
25
+ - run :
26
+ name : Run Unit Tests
27
+ command : |
28
+ source venv/bin/activate
29
+ nose2 -v
30
+ - run :
31
+ name : Lint
32
+ command : |
33
+ source venv/bin/activate
34
+ flake8 datadog_lambda/
35
+
36
+ - save_cache :
37
+ paths :
38
+ - ./venv
39
+ key : v1-dependencies-<< parameters.python >>-{{ checksum "setup.py" }}
40
+
41
+ workflows :
42
+ python-v2.7 :
43
+ jobs :
44
+ - verify_build :
45
+ python : " 2.7"
46
+
47
+ python-v3.6 :
48
+ jobs :
49
+ - verify_build :
50
+ python : " 3.6"
51
+
52
+ python-v3.7 :
53
+ jobs :
54
+ - verify_build :
55
+ python : " 3.7"
You can’t perform that action at this time.
0 commit comments