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

Commit

Permalink
update circleci stuff for version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylow committed Nov 4, 2018
1 parent 98ef62f commit a51b4c2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 12 deletions.
20 changes: 20 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
jobs:
build:
working_directory: ~/repo
docker:
- image: jeremylow/python-twitter
steps:
- checkout
- run: sudo chown -R circleci:circleci ~/repo
- run:
name: set up pyenv
command: pyenv local 2.7.15 3.7.1 pypy-5.7.1 pypy3.5-6.0.0
- run:
name: install deps
command: pip install -r requirements.testing.txt
- run:
name: run tests
command: |
export PATH=/home/circleci/.local/bin:$PATH
make tox
21 changes: 21 additions & 0 deletions .circleci/images/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# We could use a smaller image, but this ensures that everything CircleCI needs
# is installed already.
FROM circleci/python:3.6
MAINTAINER Jeremy Low <[email protected]>

# These are the version of python currently supported.
ENV SUPPORTED_VERSIONS="2.7.15 3.7.1 pypy-5.7.1 pypy3.5-6.0.0"
ENV PYENV_ROOT /home/circleci/.pyenv
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH

# Get and install pyenv.
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

# pyenv installer doesn't set these for us.
RUN echo "export PATH=${PYENV_ROOT}/bin:$$PATH \n\
eval '\$(pyenv init -)' \n\
eval '\$(pyenv virtualenv-init -)'" >> ~/.bashrc
RUN pyenv update

# Install each supported version into the container.
RUN for i in $SUPPORTED_VERSIONS; do pyenv install "$i"; done
11 changes: 0 additions & 11 deletions circle.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = clean,py27,py36,pypy,pypy3,codestyle,coverage
envlist = clean,py27,py37,pypy,pypy3,codestyle,coverage
skip_missing_interpreters = True

[testenv]
Expand Down

0 comments on commit a51b4c2

Please sign in to comment.