Skip to content

Commit

Permalink
Set AUTOMATED_TESTING on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 6, 2024
1 parent d5e5578 commit 0b24478
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,26 @@ jobs:
command: sudo cpanm -iqn LWP::Simple
- run:
name: Install dependancies
command: env && sudo cpanm -ivn --installdeps .
command: sudo cpanm -ivn --installdeps .
environment:
# PATH: ~/perl5/bin:/bin:/usr/bin
AUTOMATED_TESTING: 1
NO_NETWORK_TESTING: 1
- run:
name: Make Module
command: sudo chown -R circleci . && perl Makefile.PL && make
environment:
# PATH: ~/perl5/bin:/bin:/usr/bin
AUTOMATED_TESTING: 1
AUTHOR_TESTING: 1
NO_NETWORK_TESTING: 1
- run:
name: Run tests
environment:
# PATH: ~/perl5/bin:/bin:/usr/bin
AUTOMATED_TESTING: 1
AUTHOR_TESTING: 1
NO_NETWORK_TESTING: 1
# command: echo 'replace me with real tests!' && false
command: |
make test
Expand Down
1 change: 1 addition & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if(!IO::Socket::INET->new(PeerAddr => "$site:80", Timeout => 5)) {

if(defined($ENV{'GITHUB_ACTION'}) || defined($ENV{'CIRCLECI'}) || defined($ENV{'TRAVIS_PERL_VERSION'}) || defined($ENV{'APPVEYOR'})) {
# Prevent downloading and installing stuff
warn 'AUTOMATED_TESTING added for you' if(!defined($ENV{'AUTOMATED_TESTING'}));
$ENV{'AUTOMATED_TESTING'} = 1;
}

Expand Down

0 comments on commit 0b24478

Please sign in to comment.