julienne_github_ci_s.f90 Source File


This file depends on

sourcefile~~julienne_github_ci_s.f90~~EfferentGraph sourcefile~julienne_github_ci_s.f90 julienne_github_ci_s.f90 sourcefile~julienne_github_ci_m.f90 julienne_github_ci_m.f90 sourcefile~julienne_github_ci_s.f90->sourcefile~julienne_github_ci_m.f90

Source Code

! Copyright (c) 2024, The Regents of the University of California and Sourcery Institute
! Terms of use are as specified in LICENSE.txt
submodule(julienne_github_ci_m) julienne_github_ci_s
  implicit none

contains

  module procedure GitHub_CI

    integer name_length
    character(len=:), allocatable :: CI

    call get_environment_variable("CI", length=name_length)

    if (name_length==0) then
      GitHub_CI = .false.
    else
      allocate(character(len=name_length):: CI)
      call get_environment_variable("CI", value=CI)
      GitHub_CI = merge(.true., .false., CI=="true")
    end if

  end procedure

end submodule