image: python:3.5
before_script:
  - pip install tox
stages:
  - style
  - test

flake8:
  stage: style
  script:
    - tox -e flake8

imports:
  stage: style
  script:
    - tox -e isort

py35:
  stage: test
  script:
    - tox -e py35

image: python:3.5
before_script:
  - pip install tox
stages:
  - style
  - test

flake8:
  stage: style
  script:
    - tox -e flake8

imports:
  stage: style
  script:
    - tox -e isort

py35:
  stage: test
  script:
    - echo -e $AFIP_TEST_KEY > testapp/test.key
    - echo -e $AFIP_TEST_CRT > testapp/test.crt
    - tox -e py35

Use variable test keys when running CI
Use variable test keys when running CI

We currently use the in-repository keys for testing in CI. This has the
downside that once they expire, we can't re-run these tests inside CI.

Use keys that are passed as environment variables, so once we
reconfigure CI to use new keys, this also affects re-runs of older
builds.

The test keys are still kept in-repo, so as not to complicate testing
for developers and contributors.
