Skip to content
Snippets Groups Projects
Commit 88656087 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

add circlei

parent 80012bea
No related branches found
No related tags found
No related merge requests found
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
- image: circleci/python:3.6.1
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
# run tests!
# this example uses Django's built-in test-runner
# other common Python testing frameworks include pytest and nose
# https://pytest.org
# https://nose.readthedocs.io
- run:
name: run tests
command: |
. venv/bin/activate
python manage.py test
- store_artifacts:
path: test-reports
destination: test-reports
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# dotenv
.env
# Rope project settings
.ropeproject
# Vim
Session.vim
# Pycharm
.idea
# junk
blocks.json
# sqlite db for testing
local.db
/tests/fastest-test.sh
/tests/sbds-install.sh
/tests/test.sh
/tests/fast-test.sh
/tests/sync.sh
/tests/failed_blocks/
/envd
!/sbds.egg-info/
/tests/envdir-to-envfile.sh
*.db
envfile
/deploy
FROM phusion/baseimage:0.9.19
# Standard stuff
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Stuff for building steem-python
ARG BUILD_ROOT=/build
# Now we install the essentials
RUN \
apt-get update && \
apt-get install -y python3-pip libssl-dev build-essential
# This updates the distro-provided pip
RUN pip3 install --upgrade pip
RUN mkdir ${BUILD_ROOT}
COPY Makefile ${BUILD_ROOT}/
COPY Pipfile ${BUILD_ROOT}/
COPY Pipfile.lock ${BUILD_ROOT}/
WORKDIR ${BUILD_ROOT}
RUN pip3 install --upgrade pip && \
pip3 install --upgrade pipenv && \
pipenv install --three --dev && \
pipenv install .
COPY . ${BUILD_ROOT}
# run tests
RUN pipenv run py.test
machine:
services:
- docker
dependencies:
override:
- echo "Ignore CircleCI detected dependencies"
test:
override:
- docker build -t holgern/pySteemi .
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment