-
Notifications
You must be signed in to change notification settings - Fork 33
/
circle.yml
61 lines (58 loc) · 1.33 KB
/
circle.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
defaults: &defaults
working_directory: ~/incapsula-cracker-py3
docker:
- image: ubuntu:14.04
steps:
- run:
name: "Update package manager..."
command: "apt-get -y update"
- run:
name: "Install git..."
command: "apt-get install -y git"
- checkout
python_defaults: &python_defaults
working_directory: ~/incapsula-cracker-py3
steps:
- run:
name: "Update package manager"
command: "apt-get -y update"
- run:
name: "Install git"
command: "apt-get install -y git"
- checkout
- run:
name: "Install dependencies"
command: "python -m pip install -r requirements.txt"
- run:
name: "Install nose"
command: "python -m pip install nose"
- run:
name: "Python version"
command: "printf Using- && python --version"
- run:
name: "Nosetests"
command: "nosetests -v"
version: 2
jobs:
build:
<<: *defaults
build-p27:
<<: *python_defaults
docker:
- image: python:2.7
build-p34:
<<: *python_defaults
docker:
- image: python:3.4
workflows:
version: 2
build_and_test:
jobs:
- build-p27:
filters:
branches:
ignore: gh-pages
- build-p34:
filters:
branches:
ignore: gh-pages