Verified Commit f36ce2f2 authored by Luc Didry's avatar Luc Didry
Browse files

Improve CI + add ENV checks in code

parent 7c31bdd6
Pipeline #65660 passed with stage
in 32 seconds
......@@ -9,3 +9,5 @@ pages:
artifacts:
paths:
- public
only:
- master
......@@ -45,6 +45,14 @@ my $server = %*ENV<SERVER>;
my $theme = %*ENV<THEME> || 'default';
my (@servers, %nonfree, %contrib);
unless ($user && $pwd && $server) {
"Please set USER env variable".say unless $user;
"Please set PASSWORD env variable".say unless $pwd;
"Please set SERVER env variable".say unless $server;
"Exiting".say;
exit;
}
# Connect to IMAP server
my $i = Net::IMAP.new(:$server);
$i.authenticate($user, $pwd);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment