Skip to content

Commit 4182bc4

Browse files
committed
update to Circle CI 2.0
1 parent ed2e95a commit 4182bc4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.circleci/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: 2.0
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: circleci/python:2.7-stretch-browsers
7+
branches:
8+
only:
9+
- master
10+
steps:
11+
- checkout
12+
- run: "curl -fsSL https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | sudo tar -zxvf- -C /usr/local/bin"
13+
- run: "testspace config url samples.testspace.com"
14+
- run: "sudo pip install -r requirements.txt"
15+
- run: "sudo apt-get install pylint"
16+
- run: "pylint stock_alerter/ -f parseable > analysis.txt || true"
17+
- run: "nose2 --junit-xml --with-coverage"
18+
- run:
19+
name: Send reports to testspace
20+
command: "testspace analysis.txt{lint} nose2.xml{stock_alerter} coverage.xml"
21+
when: always

0 commit comments

Comments
 (0)