diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-08-06 20:33:17 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-09-25 21:10:56 -0400 |
commit | 5b78e8658c3f5042967cbe9d30a5a630946c4fd7 (patch) | |
tree | dc30be11cb6f2f0ff30464932f77ec8d5f04a235 /.gitlab-ci.yml | |
parent | dd6640316865d84075b00013b8b97076705e5c44 (diff) | |
download | haskell-5b78e8658c3f5042967cbe9d30a5a630946c4fd7.tar.gz |
ci: Add ad-hoc performance testing rule
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b0792f403c..2e925708e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1096,6 +1096,41 @@ perf-nofib: - nofib.log ############################################################ +# Ad-hoc performance testing +############################################################ + +perf: + stage: testing + dependencies: + - validate-x86_64-linux-deb9-dwarf + image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV" + rules: + - if: $CI_MERGE_REQUEST_ID + - if: '$CI_COMMIT_BRANCH == "master"' + - if: '$CI_COMMIT_BRANCH =~ /ghc-[0.9]+\.[0-9]+/' + tags: + - x86_64-linux-perf + script: + - root=$(pwd)/ghc + - | + mkdir tmp + tar -xf ghc-x86_64-deb9-linux-dwarf.tar.xz -C tmp + pushd tmp/ghc-*/ + ./configure --prefix=$root + make install + popd + rm -Rf tmp + - export BOOT_HC=$(which ghc) + - export HC=$root/bin/ghc + - .gitlab/ci.sh perf_test + artifacts: + expire_in: 12 week + when: always + paths: + - out + + +############################################################ # Documentation deployment via GitLab Pages ############################################################ |