Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-zeglen committed Jun 19, 2019
0 parents commit 5d959e6
Show file tree
Hide file tree
Showing 1,168 changed files with 205,791 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
engines:
eslint:
enabled: true
channel: eslint-4
isort:
enabled: true
channel: beta
pep8:
enabled: true
pylint:
enabled: true
channel: beta
plugins:
- celery
- django
checks:
import-error:
enabled: false
tslint:
enabled: true
config: tslint.json
duplication:
enabled: true
config:
languages:
python:
mass_threshold: 100
python_version: 3
exclude_patterns:
- ".*"
- "**/__pycache__/"
- "**/migrations/"
- "node_modules/"
- "tests/"
ratings:
paths:
- saleor/**
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
*.py[cod]
.*
!.babelrc
!.circleci
!.codeclimate.yml
!.coveragerc
!.dockerignore
!.eslintrc.json
!.flowconfig
!.gqlconfig
!.github
!.gitignore
!.nvmrc
!.npmrc
!.plop
!.pylintrc
!.travis*
!.tx
*.css
*.log
*.pot
*.pyc
local_settings.py
__pycache__/
build/
coverage/
dist/
*\.egg*
# data
/docs/_build/
/media/
/node_modules/
/static/
/saleor/static/assets/
webpack-bundle.json
/templates/templated_email/compiled/*
!/templates/templated_email/compiled/.gitkeep

# Exported results file
django-queries-results.html
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
puppeteer_skip_chromium_download = true
73 changes: 73 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
dist: xenial
language: python
sudo: false

python:
- "3.6"
- "3.7"

branches:
only:
- master
- /next\/.*/

cache:
pip: true
directories:
- node_modules
- $HOME/.cache/pip

install:
- pip install -U pip setuptools wheel
- pip install tox-travis pytest-django-queries
- git clone https://github.com/NyanKiyoshi/pytest-django-queries-ci-tools.git --depth 1 ../queries-ci-tools
- >
if [ -n "$DJANGO" ]; then
nvm install 10 \
&& npm i \
&& npm run build-assets --production \
&& npm run build-emails
fi
script:
- >
if [ -n "$DJANGO" ]; then
npm run test
fi
- tox

env:
global:
- DATABASE_URL="postgres://postgres@localhost:5432/saleor"
- SECRET_KEY="irrelevant"
- DIFF_RESULTS_BASE_URL="http://dhrwmpu5reeyd.cloudfront.net"
- QUERIES_RESULTS_PATH=/tmp/queries-results.json
matrix:
- DJANGO="2.2"
- DJANGO="master"

matrix:
fast_finish: true
include:
- env: TOXENV=black
python: "3.6"
- env: TOXENV=flake8
python: "3.6"
- env: TOXENV=check_gql_schema
python: "3.6"
- env: TOXENV=check_migrations
python: "3.6"
allow_failures:
- python: "3.6"
env: DJANGO="master"
- python: "3.7"
env: DJANGO="master"

services:
- postgresql

addons:
postgresql: 9.4

after_success:
- ../queries-ci-tools/handle-event.sh
Loading

0 comments on commit 5d959e6

Please sign in to comment.