Skip to content

Commit

Permalink
Fix formatting only when required cscs ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovarese committed Sep 13, 2024
1 parent 2b22e78 commit 187d795
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ci/cscs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ run_tests:
script:
- . /opt/gridtools_jl_env/setup-env.sh
- cd /opt/GridTools
- julia -e 'using Pkg; Pkg.add(\"AirspeedVelocity\"); Pkg.build(\"AirspeedVelocity\")'
- export PATH=\"\$PATH:\$HOME/.julia/bin\"
- echo \"Updated PATH: \$PATH\"
- julia -e 'using Pkg; Pkg.add("AirspeedVelocity"); Pkg.build("AirspeedVelocity")'
- export PATH="\$PATH:\$HOME/.julia/bin"
- echo "Updated PATH: \$PATH"
- julia --project=. -e 'using Pkg; Pkg.test()'
- mkdir -p results
- git fetch origin main:refs/remotes/origin/main
- CURRENT_COMMIT=$(git rev-parse HEAD)
- LAST_MAIN_COMMIT=$(git rev-parse origin/main)
- echo \"Benchmarking current commit (\$CURRENT_COMMIT) in the current branch and (\$LAST_MAIN_COMMIT) in the main branch\"
- benchpkg --rev=\"\$LAST_MAIN_COMMIT,\$CURRENT_COMMIT\" --bench-on=\"\$CURRENT_COMMIT\" --output-dir=results/
- echo \"Creating benchmark table comparing current commit (\$CURRENT_COMMIT) against (\$LAST_MAIN_COMMIT) in the main branch\"
- benchpkgtable --rev=\"\$LAST_MAIN_COMMIT,\$CURRENT_COMMIT\" --input-dir=results/ --ratio
- echo "Benchmarking current commit (\$CURRENT_COMMIT) in the current branch and (\$LAST_MAIN_COMMIT) in the main branch"
- benchpkg --rev="\$LAST_MAIN_COMMIT,\$CURRENT_COMMIT" --bench-on="\$CURRENT_COMMIT" --output-dir=results/
- echo "Creating benchmark table comparing current commit (\$CURRENT_COMMIT) against (\$LAST_MAIN_COMMIT) in the main branch"
- benchpkgtable --rev="\$LAST_MAIN_COMMIT,\$CURRENT_COMMIT" --input-dir=results/ --ratio
variables:
SLURM_JOB_NUM_NODES: 1
SLURM_NTASKS: 1
Expand Down

0 comments on commit 187d795

Please sign in to comment.