Skip to content

Commit

Permalink
ci: refinements for keeping logs in artifacts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Mar 14, 2017
1 parent 3648857 commit a22d654
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ variables:
compile:
stage: build
script:
- mkdir artifacts
- ( equo up && equo i -q --bdeps -o genkernel-next ) &>/dev/null
- ( equo i -q bison sys-block/open-iscsi sabayon-artwork-plymouth-default gentoolkit layman git gcc ) &>/dev/null
- mkdir artifacts && mkdir artifacts/logs
- ( equo up && equo i -q --bdeps -o genkernel-next ) &>artifacts/logs/equo.log
- ( equo i -q bison sys-block/open-iscsi sabayon-artwork-plymouth-default gentoolkit layman git gcc ) &>artifacts/logs/equo.log
- ( eix-sync && layman -S ) &>/dev/null
- export available_kernel=$(equo match sys-kernel/linux-sabayon -q --showslot)
- equo i --bdeps -q $available_kernel &>/dev/null
- echo "Testing genkernel installation and kernel compilation ($available_kernel)" && make && make install && emerge -j1 -b -v -t $available_kernel
- mv /usr/portage/packages/* ./artifacts/ &>artifacts/build.log
- equo i --bdeps -q $available_kernel &>artifacts/logs/equo.log
- echo "Testing genkernel installation and kernel compilation ($available_kernel)" && make && make install && emerge -j1 -b -q -t $available_kernel
- mv /usr/portage/packages/* ./artifacts/
- mv /var/log/portage/* ./artifacts/logs/
artifacts:
paths:
- artifacts
Expand Down

0 comments on commit a22d654

Please sign in to comment.