Skip to content

Commit

Permalink
Check phantomjs's SHA-256 hash before installing
Browse files Browse the repository at this point in the history
  This is probably overkill, but since we're supposed to be installing
  a specific version of this file, it seems worth checking to make
  sure we're getting the correct one.

Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
  • Loading branch information
david-a-wheeler committed May 1, 2016
1 parent 23bbe16 commit 186638e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
test:
pre:
- "[[ ! -s \"$(git rev-parse --git-dir)/shallow\" ]] || git fetch --unshallow"
- sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
- curl https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
- sha256sum -c --strict --status phantomjs.sha256
- sudo mv phantomjs-2.1.1 /usr/local/bin/phantomjs/
post:
- bundle exec pronto run -f github text -c=$(git log --pretty=format:%H | tail -1) --exit-code
deployment:
Expand Down
1 change: 1 addition & 0 deletions phantomjs.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4f63e6055c323b8657f0a546d4dd36afda5cd4e961c375f31b48d506a7c4296f phantomjs-2.1.1

0 comments on commit 186638e

Please sign in to comment.