This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 956
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update circleci stuff for version 2.0
- Loading branch information
Showing
4 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters