aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-03-07 20:04:50 +0000
committerAria Shrimpton <me@aria.rip>2024-03-07 20:04:50 +0000
commitedea4fe292ebb2cbeaa2f53d6eabd09ec879fe7c (patch)
treedfa90edb48e3995c9318b99ea3666f470e8f506b /.gitlab-ci.yml
parentec9b164e0ff3ef323958b45cb6046e25b3d865bd (diff)
separate benchmarks into different jobs and stuff
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml41
1 files changed, 37 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b724527..9c92da0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,10 +1,12 @@
variables:
SSH_LOCATION: "root@192.168.1.246"
-run-tests:
- when: manual
+stages:
+- deploy
+- benchmark
+
+default:
image: alpine
- timeout: 6 hours
before_script:
- apk update && apk add openssh-client
- eval $(ssh-agent -s)
@@ -13,6 +15,37 @@ run-tests:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts
+
+rebuild:
+ when: manual
+ stage: deploy
+ resource_group: vm
script:
- ssh $SSH_LOCATION "bash -lc 'cd /opt/candelabra && git pull && NIXOS_SWITCH_USE_DIRTY_ENV=1 nixos-rebuild switch --fast --flake .#default'"
- - ssh $SSH_LOCATION "bash -lc 'cd /opt/candelabra/src && just run-all-tests'"
+
+cost-models:
+ when: manual
+ stage: benchmark
+ needs: ["rebuild"]
+ timeout: 6 hours
+ resource_group: vm
+ script:
+ - ssh $SSH_LOCATION "bash -lc 'cd /opt/candelabra/src && just cost-models'"
+
+selections:
+ when: manual
+ stage: benchmark
+ needs: ["rebuild"]
+ timeout: 6 hours
+ resource_group: vm
+ script:
+ - ssh $SSH_LOCATION "bash -lc 'cd /opt/candelabra/src && just selections'"
+
+comparisons:
+ when: manual
+ stage: benchmark
+ needs: ["rebuild"]
+ timeout: 6 hours
+ resource_group: vm
+ script:
+ - ssh $SSH_LOCATION "bash -lc 'cd /opt/candelabra/src && just selections --compare'"