Skip to content

Commit 08b8bae

Browse files
authored
Merge pull request #2 from kangoo13/feature/clean-outdated-code-install-apps#1
ci: Add Circle Ci Config And Clean Rep
2 parents 236c483 + 1143956 commit 08b8bae

22 files changed

+276
-5642
lines changed

.circleci/config.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Python CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-python/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
11+
- image: circleci/python:3.6.1
12+
13+
# Specify service dependencies here if necessary
14+
# CircleCI maintains a library of pre-built images
15+
# documented at https://circleci.com/docs/2.0/circleci-images/
16+
# - image: circleci/postgres:9.4
17+
18+
working_directory: ~/repo
19+
20+
steps:
21+
- checkout
22+
23+
# Download and cache dependencies
24+
- restore_cache:
25+
keys:
26+
- v1-dependencies-{{ checksum "requirements.txt" }}
27+
# fallback to using the latest cache if no exact match is found
28+
- v1-dependencies-
29+
30+
- run:
31+
name: install dependencies
32+
command: |
33+
python3 -m venv venv
34+
. venv/bin/activate
35+
pip install -r requirements.txt
36+
37+
- save_cache:
38+
paths:
39+
- ./venv
40+
key: v1-dependencies-{{ checksum "requirements.txt" }}
41+
42+
# run tests!
43+
# this example uses Django's built-in test-runner
44+
# other common Python testing frameworks include pytest and nose
45+
# https://pytest.org
46+
# https://nose.readthedocs.io
47+
- run:
48+
name: run tests
49+
command: |
50+
. venv/bin/activate
51+
python manage.py test
52+
53+
- store_artifacts:
54+
path: test-reports
55+
destination: test-reports

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/.vagrant
2+
/scrapy.iml
3+
*.pyc
4+
_trial_temp*
5+
dropin.cache
6+
docs/build
7+
*egg-info
8+
.tox
9+
venv
10+
build
11+
dist
12+
.idea/*
13+
htmlcov/
14+
.coverage
15+
.pytest_cache/
16+
.coverage.*
17+
.cache/
18+
19+
# Windows
20+
Thumbs.db

LICENSE

Lines changed: 201 additions & 674 deletions
Large diffs are not rendered by default.

LICENSE.md

Lines changed: 0 additions & 674 deletions
This file was deleted.

accounts/AccountsWithOrder

Lines changed: 0 additions & 34 deletions
This file was deleted.

accounts/AllAccounts

Whitespace-only changes.

classes/AlreadyExist.php

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)