Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit a51b4c2

Browse files
committed
update circleci stuff for version 2.0
1 parent 98ef62f commit a51b4c2

File tree

4 files changed

+42
-12
lines changed

4 files changed

+42
-12
lines changed

.circleci/config.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/repo
5+
docker:
6+
- image: jeremylow/python-twitter
7+
steps:
8+
- checkout
9+
- run: sudo chown -R circleci:circleci ~/repo
10+
- run:
11+
name: set up pyenv
12+
command: pyenv local 2.7.15 3.7.1 pypy-5.7.1 pypy3.5-6.0.0
13+
- run:
14+
name: install deps
15+
command: pip install -r requirements.testing.txt
16+
- run:
17+
name: run tests
18+
command: |
19+
export PATH=/home/circleci/.local/bin:$PATH
20+
make tox

.circleci/images/Dockerfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# We could use a smaller image, but this ensures that everything CircleCI needs
2+
# is installed already.
3+
FROM circleci/python:3.6
4+
MAINTAINER Jeremy Low <[email protected]>
5+
6+
# These are the version of python currently supported.
7+
ENV SUPPORTED_VERSIONS="2.7.15 3.7.1 pypy-5.7.1 pypy3.5-6.0.0"
8+
ENV PYENV_ROOT /home/circleci/.pyenv
9+
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
10+
11+
# Get and install pyenv.
12+
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
13+
14+
# pyenv installer doesn't set these for us.
15+
RUN echo "export PATH=${PYENV_ROOT}/bin:$$PATH \n\
16+
eval '\$(pyenv init -)' \n\
17+
eval '\$(pyenv virtualenv-init -)'" >> ~/.bashrc
18+
RUN pyenv update
19+
20+
# Install each supported version into the container.
21+
RUN for i in $SUPPORTED_VERSIONS; do pyenv install "$i"; done

circle.yml

-11
This file was deleted.

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = clean,py27,py36,pypy,pypy3,codestyle,coverage
2+
envlist = clean,py27,py37,pypy,pypy3,codestyle,coverage
33
skip_missing_interpreters = True
44

55
[testenv]

0 commit comments

Comments
 (0)