question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add circle CI testing in the template

See original GitHub issue

I’ll be nice to could select circleCI (http://circleci.com/) as the CI service of the template

$ cookiecutter https://github.com/pydanny/cookiecutter-django
...

Select Continuum integration service:
1 - Travis CI
2 - CircleCI
Choose from 1, 2 [1]: 1

And seleting 2 will generate a circle.yml with a basic configuration

If this feature is approved I could provide a PR with the change.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
sfdyecommented, Feb 2, 2018

@timmyomahony here you go, sample CircleCi config with codecov support.

version: 2
jobs:
  build:
    working_directory: ~/app
    docker:
      - image: circleci/python:3.5.4
        environment:
          DATABASE_URL: YOUR_DATABASE_URL
      - image: circleci/postgres:9.6.2
        environment:
          POSTGRES_USER: postgres
          POSTGRES_DB: postgres
    steps:
      - checkout
      - restore_cache:
          key: deps1-{{ .Branch }}-{{ checksum "requirements/test.txt" }}
      - run:
          command: |
            python3 -m venv venv
            . venv/bin/activate
            pip install -r requirements/test.txt
      - save_cache:
          key: deps1-{{ .Branch }}-{{ checksum "requirements/test.txt" }}
          paths:
            - "venv"
      - run:
          command: |
            . venv/bin/activate
            py.test --cov=./
            codecov --token=token
      - store_artifacts:
          path: test-reports/
          destination: tr1
0reactions
sfdyecommented, Feb 2, 2018

@timmyomahony Is because travis is not free for our private repo, circle is free for one concurrent build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automated testing in CircleCI
CircleCI allows you to automatically test your code before changes are merged. You can integrate testing tools and frameworks such as Jest, Mocha,...
Read more >
Collecting test data - CircleCI
When you run tests in CircleCI there are two ways to store your test results. You can either use artifacts or the store_test_results...
Read more >
2.0 Project Tutorial - CircleCI
In the demo application, a virtual Python environment is set up, and the tests are run using unittest. This project uses unittest-xml-reporting for...
Read more >
Setting up continuous integration with CircleCI and GitHub
Learn how to set up a continuous integration (CI) pipeline for a Python application using GitHub and CircleCI.
Read more >
Examples and Guides Overview - CircleCI
This page provides a collection of examples to help you learn how to build, test, and deploy applications written in the most common...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found