Skip to content

Commit

Permalink
Add utility to test doc-website templates (#4263)
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Mar 19, 2023
1 parent 8200e07 commit d7ca402
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -12,3 +12,6 @@ util/Grammar.nqp

# IDE
*.iml

# website clone for testing
doc-website
14 changes: 14 additions & 0 deletions util/test-website.raku
@@ -0,0 +1,14 @@
#!/usr/bin/env raku

my $dir = "doc-website".IO;

if $dir.d {
run(<git pull --rebase>, :cwd($dir));
} else {
run(<git clone git@github.com:Raku/doc-website.git>);
}

my @files = $dir.child('Website').child('structure-sources').IO.dir;
%*ENV<TEST_FILES>=@files.join(' ');

run(<make xtest>);

0 comments on commit d7ca402

Please sign in to comment.