Skip to content

Commit

Permalink
Add .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
grewn0uille committed Jul 5, 2017
1 parent 7a556a2 commit 9feda56
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
before_script:
- pip install --upgrade pip setuptools
- pip install --upgrade .[test]

.before_script_alpine: &before_alpine
before_script:
- apk add --no-cache openssl gcc libxml2 libxml2-dev libxslt libxslt-dev libffi libffi-dev musl-dev libjpeg-turbo libjpeg-turbo-dev cairo cairo-dev
- pip install --upgrade pip setuptools
- pip install --upgrade .[test]


.test_template: &test
script:
- py.test pygal/ --flake8 --cov-report= --cov=pygal


python 2.7alpine:
image: python:2.7-alpine
<<: *before_alpine
<<: *test

# Broken symbolic link with alpine :
# https://github.com/docker-library/python/issues/155

python 3.3alpine:
image: python:3.3-alpine
<<: *before_alpine
<<: *test

python 3.4alpine:
image: python:3.4-alpine
<<: *before_alpine
<<: *test

python 3.5alpine:
image: python:3.5-alpine
<<: *before_alpine
<<: *test

python 3.6alpine:
image: python:3.6-alpine
<<: *before_alpine
<<: *test

python pypy:
image: pypy:2
<<: *test

0 comments on commit 9feda56

Please sign in to comment.