Skip to content
This repository was archived by the owner on Jun 16, 2020. It is now read-only.

Commit 68e072e

Browse files
committed
Add support for CircleCI
Remove brew update command to speed up the build on Mac OS Show python --version in build logs
1 parent 69c953a commit 68e072e

File tree

4 files changed

+36
-5
lines changed

4 files changed

+36
-5
lines changed

.circleci/config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
workflows:
3+
version: 2
4+
test:
5+
jobs:
6+
- Python-3.5
7+
- Python-3.6
8+
- Python-3.7
9+
jobs:
10+
Python-3.7: &template
11+
docker:
12+
- image: circleci/python:3.7-stretch
13+
14+
working_directory: ~/repo
15+
steps:
16+
- checkout
17+
- run:
18+
name: run tests
19+
command: |
20+
make tests
21+
22+
Python-3.6:
23+
<<: *template
24+
docker:
25+
- image: circleci/python:3.6-jessie
26+
27+
Python-3.5:
28+
<<: *template
29+
docker:
30+
- image: circleci/python:3.5-jessie

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
language: generic
1515

1616
before_install:
17-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew upgrade python && pip3 install --upgrade pip setuptools wheel; fi
17+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 install --upgrade pip setuptools wheel; fi
1818

1919
install:
2020
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo pip3 install -U -e .[dev]; else pip install -U -e .[dev]; fi
21-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip3 freeze; else pip freeze; fi
21+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 --version && pip3 freeze; else python --version && pip freeze; fi
2222

2323
script:
2424
- coverage run --branch --source termtosvg -m unittest -v

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.PHONY: usage tests venv_dev build deploy_test deploy_prod static man
22

3+
34
VENV_PATH=.venv
45
VENV_ACTIVATE=. $(VENV_PATH)/bin/activate
56
EXAMPLES_DIR=examples
@@ -30,14 +31,14 @@ deploy_prod: build
3031
$(VENV_ACTIVATE) && \
3132
twine upload -r pypi dist/*
3233

33-
tests: venv_dev man
34+
tests: venv_dev
3435
$(VENV_ACTIVATE) && \
3536
pip freeze && \
3637
coverage run --branch --source termtosvg -m unittest -v && \
3738
coverage report && \
3839
coverage html
3940
-$(VENV_ACTIVATE) && \
40-
pylint --extension-pkg-whitelist lxml termtosvg/*.py
41+
pylint -j 0 --extension-pkg-whitelist lxml termtosvg/*.py
4142

4243
venv_dev: setup.py
4344
(test -d $(VENV_PATH) || python -m venv $(VENV_PATH))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/nbedos/termtosvg.svg?branch=master)](https://travis-ci.org/nbedos/termtosvg)
1+
[![Build Status](https://travis-ci.org/nbedos/termtosvg.svg?branch=master)](https://travis-ci.org/nbedos/termtosvg) [![CircleCI](https://circleci.com/gh/nbedos/termtosvg.svg?style=svg)](https://circleci.com/gh/nbedos/termtosvg)
22

33
# termtosvg
44
termtosvg is a Unix terminal recorder written in Python that renders your command

0 commit comments

Comments
 (0)