diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-08-03 07:05:22 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-08-03 07:05:22 -0500 |
| commit | c8df0f88d178fbdf07904be184d728905ee6c6b5 (patch) | |
| tree | 0351587d8d42a6820cdf71ef0708cf04c8122c7e | |
| parent | 0b861e31ef16d299e02af4c676f4b8c960e54e40 (diff) | |
| download | flake8-c8df0f88d178fbdf07904be184d728905ee6c6b5.tar.gz | |
Update GitLab CI configuration
Let's build artifacts after we've completed a test successfully. This
should allow folks to install the version of Flake8 from a PR easily.
| -rw-r--r-- | .gitlab-ci.yml | 52 |
1 files changed, 39 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f302ef3..aa414e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,48 @@ +image: python + +stages: +- test +- build +- release + before_script: - - apt-get update -qq - - apt-get install -y python python3 python-dev python3-dev - - curl -O https://bootstrap.pypa.io/get-pip.py - - python get-pip.py - - pip install -r dev-requirements.txt +- curl -O https://bootstrap.pypa.io/get-pip.py +- python get-pip.py +- pip install -r dev-requirements.txt python2: - script: - - tox -e py27 + stage: test + script: tox -e py27 python3: - script: - - tox --skip-missing-interpreters -e py34,py35 + stage: test + script: tox --skip-missing-interpreters -e py34,py35 linters: - script: - - tox -e linters + stage: test + script: tox -e linters docs: - script: - - tox -e docs + stage: test + script: tox -e docs + +dogfood: + stage: test + script: tox -e dogfood + +build: + stage: build + script: tox -e build + artifacts: + paths: + - dist/ + expire_in: 1 month + +release: + stage: release + script: tox -e build + artifacts: + paths: + - dist + only: + - tags |
