Skip to content

Commit 443a659

Browse files
committed
Merge pull request #9 from mrcaron/master
Hookup to Travis-CI
2 parents 576e9e9 + 60be805 commit 443a659

File tree

3 files changed

+58
-8
lines changed

3 files changed

+58
-8
lines changed

.travis.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
language: perl
2+
perl:
3+
- "5.20"
4+
- "5.18"
5+
# - "5.16"
6+
# - "5.14"
7+
8+
before_install:
9+
10+
# prevent "plelase tell me who you are errors for certain DZIL configs
11+
12+
- git config --global user.name "Travis CI"
13+
14+
- "export DISPLAY=:99.0"
15+
- "sh -e /etc/init.d/xvfb start"
16+
- sleep 3 # give xvfb some time to start
17+
18+
- "wget http://selenium-release.storage.googleapis.com/2.44/selenium-server-standalone-2.44.0.jar"
19+
- "java -jar selenium-server-standalone-2.44.0.jar > /dev/null &"
20+
- sleep 5
21+
22+
install:
23+
24+
# Deal with all the DZIL dependencies, quickly and quietly
25+
26+
- cpanm --quiet --notest --skip-satisfied Dist::Zilla
27+
28+
- cpanm --quiet --notest --skip-satisfied Pod::Markdown
29+
30+
- dzil authordeps | grep -vP '[^\w:]' | xargs -n 5 -P 10 cpanm --quiet --notest --skip-satisfied
31+
32+
- export RELEASE_TESTING=1 AUTOMATED_TESTING=1 AUTHOR_TESTING=1 HARNESS_OPTIONS=j10:c HARNESS_TIMER=1
33+
34+
- dzil listdeps | grep -vP '[^\w:]' | cpanm --verbose
35+
36+
script:
37+
38+
- dzil test

README README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
Test-WWW-Selenium is a perl driver and test library for Selenium Remote
1+
2+
[![Build Status](https://travis-ci.org/mrcaron/cpan-selenium-rc-perl.svg?branch=master)](https://travis-ci.org/mrcaron/cpan-selenium-rc-perl)
3+
4+
# Overview
5+
6+
*Test-WWW-Selenium* is a perl driver and test library for Selenium Remote
27
Control (SRC). You will need to setup a Selenium Server that can launch
38
browsers.
49

5-
Selenium Remote Control (SRC) is a test tool that allows you to write
10+
*Selenium Remote Control (SRC)* is a test tool that allows you to write
611
automated web application UI tests in any programming language against
712
any HTTP website using any mainstream JavaScript-enabled browser. SRC
813
provides a Selenium Server, which can automatically start/stop/control
@@ -15,24 +20,27 @@ This module sends commands directly to the Server using simple HTTP
1520
GET/POST requests. Using this module together with the Selenium
1621
Server, you can automatically control any supported browser.
1722

23+
# Prereqs
24+
1825
To use this module, you need to have already downloaded and started the
1926
Selenium Server. (The Selenium Server is a Java application.)
2027

2128
The Selenium Server is available here:
2229

23-
http://www.openqa.org/selenium-rc/
30+
http://www.seleniumhq.org/download/
2431

2532
or on CPAN in the Alien-SeleniumRC package:
2633

2734
http://search.cpan.org/dist/Alien-SeleniumRC
2835

29-
To install:
36+
# Installation
3037

3138
perl Makefile.PL
3239
make
3340
make test
3441
make install
3542

43+
# Usage
3644
Once installed, your test script will look something like this:
3745

3846
#!/usr/bin/perl
@@ -50,6 +58,7 @@ Once installed, your test script will look something like this:
5058
$sel->text_is('todays_awesomeness', '100');
5159
$sel->text_like('status', qr/returned 42 results/);
5260

61+
# Fineprint
5362

5463
Copyright (c) 2006 Luke Closs <[email protected]>.
5564
Copyright (c) 2006 Dan Fabulitch <[email protected]>.
@@ -64,4 +73,3 @@ it under the Apache License, Version 2.0.
6473

6574
This package is free software; you can redistribute it and/or
6675
modify it under the same terms as Perl itself.
67-

dist.ini

+7-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ fake_home = 1 ; fakes $ENV{HOME} just in case
3939
skip = Devel::REPL
4040
[MinimumPerl] ; determine minimum perl version
4141

42-
[Repository] ; set 'repository' in META
43-
git_remote = origin ; - remote to choose
44-
github_http = 0 ; - for github, use git:// not http://
42+
;[Repository] ; set 'repository' in META
43+
;git_remote = origin ; - remote to choose
44+
;github_http = 0 ; - for github, use git:// not http://
4545

4646
; overrides [Repository] if repository is on github
4747
[GithubMeta]
@@ -98,3 +98,7 @@ tag_format = %v
9898
;[Git::Commit / Commit_Changes] ; commit Changes (for new dev)
9999
[Git::Push] ; push repo to remote
100100
push_to = origin
101+
102+
;[Git::CommitBuild]
103+
;release_branch = build/%b
104+
;release_message = Release build of v%v (on %b)

0 commit comments

Comments
 (0)