Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD FAILURE - websnapshot-service #2

Open
dzc34 opened this issue Feb 13, 2016 · 2 comments
Open

BUILD FAILURE - websnapshot-service #2

dzc34 opened this issue Feb 13, 2016 · 2 comments

Comments

@dzc34
Copy link
Member

dzc34 commented Feb 13, 2016

$ cd /opt
$ sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
$ sudo tar -xvf phantomjs-1.9.7-linux-x86_64.tar.bz2
$ sudo rm phantomjs-1.9.7-linux-x86_64.tar.bz2
$ cd /home/<user>
$ git clone https://github.com/Asqatasun/Web-Snapshot.git
$ cd /home/<user>/Web-Snapshot
$ mvn clean install


[INFO] websnapshot ....................................... SUCCESS [0.317s]
[INFO] websnapshot-api ................................... SUCCESS [1.468s]
[INFO] websnapshot-service ............................... FAILURE [20.624s]
[INFO] websnapshot-impl .................................. SKIPPED
[INFO] websnapshot-persistence ........................... SKIPPED
[INFO] websnapshot-webapp ................................ SKIPPED
[INFO] websnapshot-resources ............................. SKIPPED

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project websnapshot-service: There are test failures.


$ cd websnapshot-service/target/surefire-reports/
$ cat org.asqatasun.websnapshot.service.SnapshotCreatorImplTest.txt


Test set: org.asqatasun.websnapshot.service.SnapshotCreatorImplTest

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.034 sec <<< FAILURE!
testGetThumbnail(org.asqatasun.websnapshot.service.SnapshotCreatorImplTest) Time elapsed: 0.028 sec <<< ERROR!
java.lang.IllegalStateException: The driver executable does not exist: /opt/phantomjs/bin/phantomjs
at com.google.common.base.Preconditions.checkState(Preconditions.java:177)


$ ls /opt

.
..
phantomjs-1.9.7-linux-x86_64

@dzc34
Copy link
Member Author

dzc34 commented Feb 13, 2016

$ sudo ln -s /opt/phantomjs-1.9.7-linux-x86_64 /opt/phantomjs

[INFO] websnapshot ....................................... SUCCESS [0.225s]
[INFO] websnapshot-api ................................... SUCCESS [1.141s]
[INFO] websnapshot-service ............................... SUCCESS [48.506s]
[INFO] websnapshot-impl .................................. SUCCESS [2.096s]
[INFO] websnapshot-persistence ........................... SUCCESS [47.111s]
[INFO] websnapshot-webapp ................................ SUCCESS [11.775s]
[INFO] websnapshot-resources ............................. SUCCESS [0.104s]

@jkowalczyk
Copy link
Member

it's also a good idea ;-)
Without this, you can still download, but you need to skip the tests

dzc34 added a commit that referenced this issue Feb 13, 2016
dzc34 added a commit that referenced this issue Feb 13, 2016
dzc34 added a commit that referenced this issue Feb 13, 2016
jkowalczyk added a commit that referenced this issue Feb 13, 2016
update build documentation for #1 and #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants