Skip to content

Commit

Permalink
Renamed custom job.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Feb 27, 2024
1 parent 2550776 commit 925dea2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
}
]
},
"lisp-job": {
"check-ros-config": {
"runs-on": "ubuntu-latest",
"env": {
"OS": "ubuntu-latest",
Expand Down
3 changes: 2 additions & 1 deletion src/ci.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
:qlfile "{% ifequal quicklisp_dist \"ultralisp\" %}
dist ultralisp http://dist.ultralisp.org
{% endifequal %}")
(40ants-ci/jobs/lisp-job:lisp-job :lisp "ccl-bin"
(40ants-ci/jobs/lisp-job:lisp-job :name "check-ros-config"
:lisp "ccl-bin"
:steps ((40ants-ci/steps/sh:sh "Show Roswell Config"
"ros config")))))

Expand Down
10 changes: 6 additions & 4 deletions src/jobs/job.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@

(defmethod initialize-instance :after ((job job) &rest initargs)
(declare (ignore initargs))

(unless (slot-boundp job 'name)
(setf (slot-value job 'name)
(string-downcase
(class-name (class-of job))))
(setf (slot-value job 'steps)
(mapcar #'ensure-step
(slot-value job 'steps)))))
(class-name (class-of job)))))

(setf (slot-value job 'steps)
(mapcar #'ensure-step
(slot-value job 'steps))))


(defmethod os :around ((job job))
Expand Down

0 comments on commit 925dea2

Please sign in to comment.