Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien DA ROCHA
sakia
Commits
c2cf6fc6
Commit
c2cf6fc6
authored
7 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Add gitlab-ci.yml
parent
04d6e275
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+74
-0
74 additions, 0 deletions
.gitlab-ci.yml
with
74 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
74
−
0
View file @
c2cf6fc6
stages
:
-
github-sync
-
prepare
-
build
-
test
-
release
variables
:
PYENV_PYTHON_VERSION
:
3.5.5
image
:
registry.duniter.org/docker/python3/duniterpy-builder:0.0.5
push_to_github
:
stage
:
github-sync
variables
:
GIT_STRATEGY
:
none
tags
:
-
github
script
:
-
rm -rf ./*
-
rm -rf .git
-
git clone --mirror $CI_REPOSITORY_URL .
-
git remote add github $GITHUB_URL_AND_KEY
-
git config --global user.email "contact@duniter.org"
-
git config --global user.name "Duniter"
# Job would fail if we don't remove refs about pull requests
-
bash -c "cat packed-refs | grep -v 'refs/pull' > packed-refs-new; echo 'Removed pull refs.'"
-
mv packed-refs-new packed-refs
-
bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
.pyenv
:
&pyenv
tags
:
-
redshift-docker-python
before_script
:
-
export PYENV_ROOT="$HOME/.pyenv"
-
export PATH="$PYENV_ROOT/bin:$PATH"
-
eval "$(pyenv init -)"
-
pyenv shell $PYENV_PYTHON_VERSION
.qt5
:
&qt5
tags
:
-
redshift-docker-python
before_script
:
-
export PATH=/opt/qt/5.9/5.9/gcc_64/bin:$PATH
build
:
&build
<<
:
*pyenv
stage
:
build
script
:
-
pip install -r requirements.txt
-
python gen_resources.py
-
python gen_translations.py --lrelease
-
python setup.py sdist bdist_wheel
-
py.test
test
:
<<
:
*pyenv
stage
:
test
script
:
-
pip install coveralls
-
pip install -r requirements.txt
-
python gen_resources.py
-
python gen_translations.py --lrelease
-
py.test --cov=sakia tests/
releases
:
<<
:
*pyenv
stage
:
release
when
:
manual
script
:
-
pip install -r requirements.txt
-
pip install wheel
-
pip install twine
-
python setup.py sdist bdist_wheel
-
twine upload dist/* --username duniter --password $PYPI_PASSWORD
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment