Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
185 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
[submodule "modules/manakai"] | ||
path = modules/manakai | ||
url = git://github.com/wakaba/manakai.git | ||
[submodule "modules/wanage"] | ||
path = modules/wanage | ||
url = git://github.com/wakaba/wanage | ||
track = master | ||
[submodule "modules/charclass"] | ||
path = modules/charclass | ||
url = git://github.com/wakaba/perl-charclass | ||
track = master | ||
[submodule "modules/ooutils"] | ||
path = modules/ooutils | ||
url = git://github.com/wakaba/perl-ooutils | ||
track = master | ||
[submodule "modules/web-encodings"] | ||
path = modules/web-encodings | ||
url = git://github.com/manakai/perl-web-encodings | ||
track = master | ||
[submodule "modules/web-url"] | ||
path = modules/web-url | ||
url = git://github.com/manakai/perl-web-url | ||
track = master | ||
[submodule "modules/promised-command"] | ||
path = modules/promised-command | ||
url = git://github.com/wakaba/perl-promised-command | ||
track = master | ||
[submodule "modules/promise"] | ||
path = modules/promise | ||
url = git://github.com/wakaba/perl-promise | ||
track = master | ||
[submodule "modules/twiggy-packed"] | ||
path = modules/twiggy-packed | ||
url = git://github.com/wakaba/perl-twiggy-packed | ||
track = master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,65 @@ | ||
|
||
all: | ||
cd html && $(MAKE) all | ||
|
||
WGET = wget | ||
CURL = curl | ||
GIT = git | ||
|
||
updatenightly: local/bin/pmbp.pl | ||
$(CURL) -s -S -L https://gist.githubusercontent.com/wakaba/34a71d3137a52abb562d/raw/gistfile1.txt | sh | ||
$(GIT) add modules | ||
perl local/bin/pmbp.pl --update | ||
$(GIT) add config | ||
|
||
## ------ Setup ------ | ||
|
||
deps: always | ||
true # dummy for make -q | ||
ifdef PMBP_HEROKU_BUILDPACK | ||
else | ||
$(MAKE) git-submodules | ||
endif | ||
$(MAKE) pmbp-install | ||
|
||
git-submodules: | ||
$(GIT) submodule update --init | ||
|
||
PMBP_OPTIONS= | ||
|
||
local/bin/pmbp.pl: | ||
mkdir -p local/bin | ||
$(CURL) -s -S -L https://raw.githubusercontent.com/wakaba/perl-setupenv/master/bin/pmbp.pl > $@ | ||
pmbp-upgrade: local/bin/pmbp.pl | ||
perl local/bin/pmbp.pl $(PMBP_OPTIONS) --update-pmbp-pl | ||
pmbp-update: git-submodules pmbp-upgrade | ||
perl local/bin/pmbp.pl $(PMBP_OPTIONS) --update | ||
pmbp-install: pmbp-upgrade | ||
perl local/bin/pmbp.pl $(PMBP_OPTIONS) --install \ | ||
--create-perl-command-shortcut @perl \ | ||
--create-perl-command-shortcut @prove \ | ||
--create-perl-command-shortcut @plackup=perl\ modules/twiggy-packed/script/plackup | ||
|
||
create-commit-for-heroku: | ||
git remote rm origin | ||
rm -fr deps/pmtar/.git deps/pmpp/.git modules/*/.git | ||
git add -f deps/pmtar/* #deps/pmpp/* | ||
#rm -fr ./t_deps/modules | ||
#git rm -r t_deps/modules | ||
git rm .gitmodules | ||
git rm modules/* --cached | ||
git add -f modules/*/* | ||
git commit -m "for heroku" | ||
|
||
## ------ Tests ------ | ||
|
||
PROVE = ./prove | ||
|
||
test: test-deps test-main | ||
|
||
test-deps: deps | ||
|
||
test-main: | ||
#$(PROVE) t/*.t | ||
|
||
always: | ||
|
||
## License: Public Domain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: ./plackup -p $PORT -s Twiggy::Prefork support/server.psgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "tests-web", | ||
"website": "https://github.com/wakaba/tests-web", | ||
"buildpacks": [ | ||
{"url": "https://github.com/wakaba/heroku-buildpack-perl-pmbp"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
dependencies: | ||
override: | ||
- git config --global user.email "temp@circleci.test" | ||
- git config --global user.name "CircleCI" | ||
- make deps | ||
test: | ||
override: | ||
- make test | ||
- ./plackup -p 5114 -t Twiggy::Prefork bin/server.psgi : | ||
background: true | ||
- sleep 10 | ||
- curl http://localhost:5114 | ||
deployment: | ||
staging: | ||
branch: staging | ||
commands: | ||
- git rev-parse HEAD > head.txt | ||
- curl -f -s -S --request POST --header "Authorization:token $GITHUB_ACCESS_TOKEN" --header "Content-Type:application/json" --data-binary "{\"base\":\"master\",\"head\":\"`cat head.txt`\",\"commit_message\":\"auto-merge staging into master\"}" "https://api.github.com/repos/wakaba/tests-web/merges" | ||
nightly: | ||
branch: nightly | ||
commands: | ||
- git rev-parse HEAD > head.txt | ||
- curl -f -s -S --request POST --header "Authorization:token $GITHUB_ACCESS_TOKEN" --header "Content-Type:application/json" --data-binary "{\"base\":\"master\",\"head\":\"`cat head.txt`\",\"commit_message\":\"auto-merge nightly into master\"}" "https://api.github.com/repos/wakaba/tests-web/merges" | ||
heroku: | ||
branch: master | ||
commands: | ||
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow" | ||
- make create-commit-for-heroku | ||
- git push git@heroku.com:web-tests.git +`git rev-parse HEAD`:refs/heads/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Scalar::Util~1.42 | ||
Pod::Usage~1.67 | ||
IO::Handle~1.28 | ||
Test::NoWarnings~1.04 | ||
Unicode::Normalize~1.23 | ||
Encode~2.78 | ||
AnyEvent::Util | ||
Time::Local~1.2300 | ||
parent~0.234 | ||
Exporter::Lite~0.06 | ||
Time::HiRes~1.9726 | ||
Exporter~5.72 | ||
Carp~1.36 | ||
Proc::Wait3~0.04 | ||
MIME::Base64~3.15 | ||
File::Temp~0.2304 | ||
Path::Class~0.35 | ||
Unicode::Stringprep~1.105 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
- "../../modules/json-functions-xs" tests | ||
- "../../modules/json-ps" tests | ||
- "../../modules/web-encodings" tests build | ||
- "../../modules/web-url" tests build | ||
- "../../modules/web-dom" tests build | ||
- "../../modules/web-css" tests build | ||
- "../../modules/web-markup" tests build | ||
- "../../modules/web-useragent-functions" tests lwp anyeventsocks oauth wsse cli testws curl | ||
- "../../modules/wanage" tests build datetime mp | ||
- "../../modules/temma" tests | ||
- "../../modules/ooutils" tests classdiamondgenerator classregistry objectcachesmethod operationresponse test | ||
- "../../modules/charclass" tests build | ||
- "../../modules/web-utils" tests | ||
- "../../modules/mediawiki-parser" tests web | ||
- "../../modules/promise" tests | ||
- "../../modules/promised-file" tests | ||
- "../../modules/promised-command" tests | ||
- "../../modules/twiggy-packed" tests | ||
- "../../t_deps/modules/test-x1" tests | ||
- "../../modules/promised-plackup" tests |
Submodule charclass
added at
8d9dd5
Submodule manakai
deleted from
8487d3
Submodule ooutils
added at
de37e7
Submodule promise
added at
536eb8
Submodule promised-command
added at
6c3fee
Submodule twiggy-packed
added at
558687
Submodule wanage
added at
9b8c65
Submodule web-encodings
added at
a5a354
Submodule web-url
added at
ab05cd