-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added examples to i18n documentation, run doctests
- Loading branch information
Showing
4 changed files
with
114 additions
and
30 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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
before_script: | ||
tests: | ||
stage: test | ||
script: | ||
- git submodule init | ||
- git submodule update | ||
- virtualenv-3.4 env | ||
- source env/bin/activate | ||
- cd src | ||
- XDG_CACHE_HOME=/cache pip3 install -r requirements.txt -r requirements/dev.txt -r requirements/py34.txt | ||
- flake8 --ignore=E123,F403,F401,N802,C901,W503 . | ||
- isort -c -rc . | ||
- python3 manage.py check | ||
- make | ||
- make compress | ||
- coverage run -m py.test tests | ||
- XDG_CACHE_HOME=/cache pip3 install -r src/requirements.txt -r src/requirements/dev.txt -r src/requirements/py34.txt -r doc/requirements.txt | ||
- bash .travis.sh tests | ||
tags: | ||
- python3 | ||
- selenium | ||
build: | ||
type: deploy | ||
doctests: | ||
stage: test | ||
script: | ||
- cd deployment/docker/standalone/ | ||
- docker login -u ciuser -p $DOCKERPW -e admin@rami.io docker.rami.io | ||
- docker build -t pretix/standalone . | ||
- docker tag -f pretix/standalone docker.rami.io/pretix/standalone:$CI_BUILD_REF_NAME | ||
- docker push docker.rami.io/pretix/standalone:$CI_BUILD_REF_NAME | ||
- virtualenv-3.4 env | ||
- source env/bin/activate | ||
- XDG_CACHE_HOME=/cache pip3 install -r src/requirements.txt -r src/requirements/dev.txt -r src/requirements/py34.txt -r doc/requirements.txt | ||
- bash .travis.sh doctests | ||
tags: | ||
- python3 | ||
style: | ||
stage: test | ||
script: | ||
- virtualenv-3.4 env | ||
- source env/bin/activate | ||
- XDG_CACHE_HOME=/cache pip3 install -r src/requirements.txt -r src/requirements/dev.txt -r src/requirements/py34.txt -r doc/requirements.txt | ||
- bash .travis.sh style | ||
tags: | ||
- docker | ||
- python3 |
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,22 @@ | ||
#!/bin/bash | ||
set -e | ||
set -x | ||
|
||
echo "Executing job $1" | ||
|
||
if [ "$1" == "style" ]; then | ||
cd src | ||
flake8 --ignore=E123,F403,F401,N802,C901,W503,E402 . | ||
isort -c -rc . | ||
fi | ||
if [ "$1" == "doctests" ]; then | ||
cd doc | ||
cat Makefile | ||
make doctests | ||
fi | ||
if [ "$1" == "tests" ]; then | ||
cd src | ||
python manage.py check | ||
make all compress | ||
coverage run -m py.test tests && coveralls | ||
fi |
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
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