Skip to content

Commit

Permalink
Modernize project (META6.json, add macos ci, fix appveyor ci, update …
Browse files Browse the repository at this point in the history
…docs)
  • Loading branch information
azawawi committed Feb 6, 2017
1 parent fe8ea3f commit 7728bd2
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 16 deletions.
18 changes: 11 additions & 7 deletions .travis.yml
@@ -1,18 +1,22 @@
sudo: required

language: perl6

os:
- linux
- osx

perl6:
- 2016.08.1
- 2017.01
- latest

install:
before_install:
- echo $TRAVIS_OS_NAME
- rakudobrew build panda
- panda installdeps .

script: prove -v -e "perl6 -Ilib" t/
install:
- rakudobrew build zef
- zef --depsonly install .
- zef install Test::META
- zef build .

script:
- AUTHOR_TESTING=1 prove -ve "perl6 -Ilib"
- zef install .
File renamed without changes.
19 changes: 14 additions & 5 deletions README.md
Expand Up @@ -26,16 +26,25 @@ say File::HomeDir.my-videos;

## Installation

To install it using Panda (a module management tool bundled with Rakudo Star):
To install it using zef (a module management tool bundled with Rakudo Star):

panda update
panda install File::HomeDir
```
zef install File::HomeDir
```

## Testing

To run tests:
- To run tests:
```
$ prove -ve "perl6 -Ilib"
```

prove -v -e "perl6 -Ilib"
- To run all tests including author tests (Please make sure
[Test::Meta](https://github.com/jonathanstowe/Test-META) is installed):
```
$ zef install Test::META
$ AUTHOR_TESTING=1 prove -ve "perl6 -Ilib"
```

## Author

Expand Down
16 changes: 12 additions & 4 deletions appveyor.yml
Expand Up @@ -2,20 +2,28 @@ os: Visual Studio 2015

platform: x64

environment:
matrix:
- test_moar: 2017.01
- test_moar: '' #latest

install:
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64'
- choco install strawberryperl
- choco install strawberryperl --allow-empty-checksums
- SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH%
- git clone https://github.com/tadzik/rakudobrew %USERPROFILE%\rakudobrew
- SET PATH=%USERPROFILE%\rakudobrew\bin;%PATH%
- rakudobrew build moar 2016.08.1
- rakudobrew build moar %TEST_MOAR%
- rakudobrew build zef
- cd %APPVEYOR_BUILD_FOLDER%
- zef --verbose --depsonly install .
- zef --depsonly install .
- zef install Test::META
- zef build .

build: off

test_script:
- prove -v -e "perl6 -Ilib" t/
- set AUTHOR_TESTING=1 && prove -ve "perl6 -Ilib"
- zef install .

shallow_clone: true
15 changes: 15 additions & 0 deletions t/99-author-meta.t
@@ -0,0 +1,15 @@

use v6;

use Test;

plan 1;

if ?%*ENV<AUTHOR_TESTING> {
require Test::META <&meta-ok>;
meta-ok;
done-testing;
} else {
skip-rest "Skipping author test";
exit;
}

0 comments on commit 7728bd2

Please sign in to comment.