Skip to content

Commit ca62c54

Browse files
committed
Merge pull request #36 from vrutkovs/ci
Add CI verification and code coverage
2 parents b27719f + ee554f2 commit ca62c54

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,3 @@ docs/_build/
5555

5656
# PyBuilder
5757
target/
58-
59-
# real config files
60-
*.conf

circle.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
machine:
2+
services:
3+
- docker
4+
python:
5+
version: 2.7
6+
environment:
7+
COVERALLS_REPO_TOKEN: RDQpf8yX7quK5FXKN2auJpAxFNlIByLiT
8+
9+
10+
dependencies:
11+
pre:
12+
- pip install --use-mirrors coverage python-coveralls
13+
14+
test:
15+
override:
16+
- mkdir test_dir
17+
- cd test_dir && COVERAGE_FILE=../.coverage.init coverage run ../ctf-cli.py init
18+
- cd test_dir && COVERAGE_FILE=../.coverage.update coverage run ../ctf-cli.py update
19+
- cd test_dir && COVERAGE_FILE=../.coverage.run coverage run ../ctf-cli.py run
20+
- coverage combine
21+
- coveralls

ctf.conf.sample

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ ExecType=ansible
88

99
[ansible]
1010
Host=192.168.1.1
11-
Method=ssh
11+
Method=local
1212
User=root

ctf_cli/common_environment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
3636
[ansible]
3737
Host=192.168.1.1
38-
Method=ssh
38+
Method=local
3939
User=root
4040
"""
4141

0 commit comments

Comments
 (0)