Skip to content

Commit bdb646c

Browse files
mattcieslaksinglesptsalosmeislertien-tong
authored
Use jinja templates for creating scripts/yamls (#231)
Co-authored-by: Parker Singleton <[email protected]> Co-authored-by: Taylor Salo <[email protected]> Co-authored-by: Steven Meisler <[email protected]> Co-authored-by: Tien Tong <[email protected]>
1 parent 064e4cc commit bdb646c

17 files changed

+902
-719
lines changed

.circleci/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,36 @@ jobs:
7171
-t pennlinc/slurm-docker-ci:unstable \
7272
-f Dockerfile_testing .
7373
74+
# Make a directory that will hold the test artifacts
75+
mkdir -p /home/circleci/testing
7476
docker run -it \
7577
-v ${PWD}:/tests \
78+
-v /home/circleci/testing:/test-temp:rw \
7679
-h slurmctl --cap-add sys_admin \
7780
--privileged \
7881
pennlinc/slurm-docker-ci:unstable \
7982
/tests/tests/e2e-slurm/container/walkthrough-tests.sh
8083
84+
- run:
85+
name: clean up test artifacts
86+
when: always
87+
command: |
88+
TEST_ARTIFACTS_DIR=/home/circleci/testing/test_project/analysis
89+
sudo chmod -R 777 $TEST_ARTIFACTS_DIR
90+
# Find and remove all .git directories recursively
91+
sudo find $TEST_ARTIFACTS_DIR -type d -name ".git" -exec rm -rf {} +
92+
# Also remove any .git files
93+
sudo find $TEST_ARTIFACTS_DIR -type f -name ".git" -exec rm -f {} +
94+
# Remove any .gitignore files
95+
sudo find $TEST_ARTIFACTS_DIR -type f -name ".gitignore" -exec rm -f {} +
96+
# Remove any .gitattributes files
97+
sudo find $TEST_ARTIFACTS_DIR -type f -name ".gitattributes" -exec rm -f {} +
98+
sudo find $TEST_ARTIFACTS_DIR/inputs/data -type d -name "sub-*" -exec rm -rf {} +
99+
100+
- store_artifacts:
101+
path: /home/circleci/testing/test_project/analysis
102+
destination: test-artifacts
103+
81104
deployable: # checkpoint of deployable: requires all success
82105
<<: *dockersetup
83106
steps:

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,13 @@
1919
"source.fixAll": "explicit",
2020
"source.organizeImports": "explicit"
2121
}
22+
},
23+
"[jinja]": {
24+
"editor.formatOnSave": false,
25+
"editor.wordWrap": "off"
26+
},
27+
"[jinja-html]": {
28+
"editor.formatOnSave": false,
29+
"editor.wordWrap": "off"
2230
}
2331
}

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include LICENSE
55
# necessary files in babs/:
66
# by default it only includes *.py
77
recursive-include babs *.yaml
8+
recursive-include babs/templates *.jinja2
89

910
# versioneer
1011
include babs/_version.py

0 commit comments

Comments
 (0)