- Notifications
You must be signed in to change notification settings - Fork673
chore(ci): use reliable ci system#773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
96 changes: 96 additions & 0 deletions.gitlab-ci.yml
This file contains hidden or 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,96 @@ | ||
image: python:3.7 | ||
stages: | ||
- lint | ||
- build-test-image | ||
- test | ||
- deploy | ||
commitlint: | ||
image: node:12 | ||
stage: lint | ||
before_script: | ||
- npm install -g @commitlint/cli @commitlint/config-conventional | ||
- 'echo "module.exports = {extends: [\"@commitlint/config-conventional\"]}" > commitlint.config.js' | ||
script: | ||
- npx commitlint --from=origin/master | ||
except: | ||
- master | ||
#build_test_image: # Currently hangs forever, because of GitLab Runner infrastructure issues | ||
gpocentek marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
# stage: build-test-image | ||
# image: | ||
# name: gcr.io/kaniko-project/executor:debug | ||
# entrypoint: [""] | ||
# script: | ||
# - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json | ||
# - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/tools/Dockerfile-test --destination $CI_REGISTRY_IMAGE:test | ||
# only: | ||
# refs: | ||
# - master | ||
# changes: | ||
# - tools/ | ||
.tox_includes: &tox_includes | ||
stage: test | ||
before_script: | ||
- pip install tox | ||
script: | ||
- tox -e $TOX_ENV | ||
test_2.7: | ||
<<: *tox_includes | ||
image: python:2.7 | ||
variables: | ||
TOX_ENV: py27 | ||
test_3.4: | ||
<<: *tox_includes | ||
image: python:3.4 | ||
variables: | ||
TOX_ENV: py34 | ||
test_3.5: | ||
<<: *tox_includes | ||
image: python:3.5 | ||
variables: | ||
TOX_ENV: py35 | ||
test_3.6: | ||
<<: *tox_includes | ||
image: python:3.6 | ||
variables: | ||
TOX_ENV: py36 | ||
test_3.7: | ||
<<: *tox_includes | ||
image: python:3.7 | ||
variables: | ||
TOX_ENV: py37 | ||
test_3.8: | ||
<<: *tox_includes | ||
image: python:3.8-rc-alpine | ||
variables: | ||
TOX_ENV: py38 | ||
allow_failure: true | ||
test_docs: | ||
<<: *tox_includes | ||
variables: | ||
TOX_ENV: docs | ||
deploy: | ||
stage: deploy | ||
script: | ||
- pip install -U setuptools wheel twine | ||
- python setup.py sdist bdist_wheel | ||
# test package | ||
- python3 -m venv test | ||
- . test/bin/activate | ||
- pip install -U dist/python-gitlab*.whl | ||
- gitlab -h | ||
- deactivate | ||
- twine upload --skip-existing -u $TWINE_USERNAME -p $TWINE_PASSWORD dist/* | ||
only: | ||
- tags |
21 changes: 0 additions & 21 deletions.travis.yml
This file contains hidden or 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,33 +1,12 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
language: python | ||
python: 2.7 | ||
env: | ||
- TOX_ENV=py_func_v4 | ||
- TOX_ENV=cli_func_v4 | ||
install: | ||
- pip install tox | ||
script: | ||
- tox -e $TOX_ENV | ||
34 changes: 34 additions & 0 deletionstools/Dockerfile-test
This file contains hidden or 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,34 @@ | ||
FROM ubuntu:16.04 | ||
# based on Vincent Robert <vincent.robert@genezys.net> initial Dockerfile | ||
MAINTAINER Gauvain Pocentek <gauvain@pocentek.net> | ||
# Install required packages | ||
RUN apt-get update \ | ||
&& apt-get install -qy --no-install-recommends \ | ||
openssh-server \ | ||
ca-certificates \ | ||
curl \ | ||
tzdata \ | ||
&& curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | bash \ | ||
&& apt-get install -qy --no-install-recommends \ | ||
gitlab-ce=11.10.0-ce.0 | ||
# Manage SSHD through runit | ||
RUN mkdir -p /opt/gitlab/sv/sshd/supervise \ | ||
&& mkfifo /opt/gitlab/sv/sshd/supervise/ok \ | ||
&& printf "#!/bin/sh\nexec 2>&1\numask 077\nexec /usr/sbin/sshd -D" > /opt/gitlab/sv/sshd/run \ | ||
&& chmod a+x /opt/gitlab/sv/sshd/run \ | ||
&& ln -s /opt/gitlab/sv/sshd /opt/gitlab/service \ | ||
&& mkdir -p /var/run/sshd | ||
# Default root password | ||
RUN echo "gitlab_rails['initial_root_password'] = '5iveL!fe'" >> /etc/gitlab/gitlab.rb; \ | ||
sed -i "s,^external_url.*,external_url 'http://gitlab.test'," /etc/gitlab/gitlab.rb; \ | ||
echo 'pages_external_url "http://pages.gitlab.lxd/"' >> /etc/gitlab/gitlab.rb; \ | ||
echo "gitlab_pages['enable'] = true" >> /etc/gitlab/gitlab.rb | ||
# Expose web & ssh | ||
EXPOSE 80 22 | ||
# Default is to run runit & reconfigure | ||
CMD sleep 3 && gitlab-ctl reconfigure & /opt/gitlab/embedded/bin/runsvdir-start |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.