diff --git a/.gitignore b/.gitignore index fa371d5ba02ef42f993cb6446341dfdefab9f4e1..665bc6dd4de8b845928815cb2538ba3334a88417 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,8 @@ .pre-commit-config.yaml git-conventional-commits.yaml +# folders +test + # files docs/notes.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 7521bcce4ebd31ff12122a6a75cee99fdea3c5f0..0000000000000000000000000000000000000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,32 +0,0 @@ -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 diff --git a/src/gitlab-ci/.gitlab-ci.yml b/src/gitlab-ci/.gitlab-ci.yml deleted file mode 120000 index d0faac9b9b1baa0a5d90de96550b32d54791e6c2..0000000000000000000000000000000000000000 --- a/src/gitlab-ci/.gitlab-ci.yml +++ /dev/null @@ -1 +0,0 @@ -../../.gitlab-ci.yml \ No newline at end of file diff --git a/src/gitlab-ci/.gitlab-ci.yml b/src/gitlab-ci/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..7521bcce4ebd31ff12122a6a75cee99fdea3c5f0 --- /dev/null +++ b/src/gitlab-ci/.gitlab-ci.yml @@ -0,0 +1,32 @@ +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