Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dmanik
gitlab-ci-talk
Commits
d2704fed
Commit
d2704fed
authored
May 29, 2019
by
dmanik
Browse files
The first snippet now actually looks good. No edges cut off
parent
9e55e24c
Pipeline
#98054
passed with stage
in 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
snippets/ci-testing.yml
View file @
d2704fed
# specify a docker image
image
:
debsankhamanik/ecoptimizer_testenv:latest
# Run necessary steps before pipeline can be run
before_script
:
-
python -V
# Print out python version for debugging
# install itself using pip
-
pip install -e .[dev]
# define two stages: unittest and integration_test
stages
:
before_script
:
# Steps before pipeline can be run
-
pip install -e .[dev]
# install itself using pip
stages
:
# define two stages
-
unittest
-
integration_test
# job unittests, belongs to stage unittests
unittests
:
unittests
:
stage
:
unittest
# here goes the command that is actually run
script
:
-
python ecoptimizer/testing/testsuite_runner.py run_unittests
# job integration tests, belongs to stage integration tests
integration_tests
:
script
:
# here goes the command that is actually run
-
python testsuite_runner.py run_unittests
integration_tests
:
stage
:
integration_test
# do not run this for commits to non-master branches
only
:
only
:
# run this only for master branch
-
master
script
:
-
python
ecoptimizer/testing/
testsuite_runner.py run_integration_tests
-
python testsuite_runner.py run_integration_tests
talk.tex
View file @
d2704fed
...
...
@@ -49,7 +49,7 @@
\end{frame}
\begin{frame}
[fragile]
{
How to set this up?
}
\inputminted
{
yaml
}{
snippets/ci-testing.yml
}
\inputminted
{
yaml
}{
snippets/ci-testing.yml
}
\end{frame}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment