Skip to content
Snippets Groups Projects
Commit 234f33cf authored by Max Melchert's avatar Max Melchert
Browse files

fix: move gitlab-ci to src

parent 71a854dc
No related branches found
No related tags found
No related merge requests found
......@@ -2,5 +2,8 @@
.pre-commit-config.yaml
git-conventional-commits.yaml
# folders
test
# files
docs/notes.md
create-file:
stage: build
image: python
# tags:
# - gpu
script:
- |
cat <<EOF > test.py
with open('output.txt', 'w') as f:
f.write('hello world!\\n')
EOF
- python test.py
artifacts:
paths:
- output.txt
test-file-output:
stage: test
script:
- grep -q "hello world!" output.txt
dependencies:
- create-file
deploy-output:
stage: deploy
script:
- cp output.txt release.txt
artifacts:
paths:
- release.txt
dependencies:
- create-file
../../.gitlab-ci.yml
\ No newline at end of file
create-file:
stage: build
image: python
# tags:
# - gpu
script:
- |
cat <<EOF > test.py
with open('output.txt', 'w') as f:
f.write('hello world!\\n')
EOF
- python test.py
artifacts:
paths:
- output.txt
test-file-output:
stage: test
script:
- grep -q "hello world!" output.txt
dependencies:
- create-file
deploy-output:
stage: deploy
script:
- cp output.txt release.txt
artifacts:
paths:
- release.txt
dependencies:
- create-file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment