Skip to content
代码片段 群组 项目
提交 e6173e05 编辑于 作者: Kamil Trzciński's avatar Kamil Trzciński 提交者: Alfredo Sumaran
浏览文件

Install latest stable phantomjs

上级 d18fe209
No related branches found
No related tags found
无相关合并请求
...@@ -15,7 +15,7 @@ variables: ...@@ -15,7 +15,7 @@ variables:
USE_DB: "true" USE_DB: "true"
USE_BUNDLE_INSTALL: "true" USE_BUNDLE_INSTALL: "true"
GIT_DEPTH: "20" GIT_DEPTH: "20"
PHANTOMJS_DEB: "phantomjs_2.1.1+dfsg-2_amd64.deb" PHANTOMJS_VERSION: "2.1.1"
before_script: before_script:
- source ./scripts/prepare_build.sh - source ./scripts/prepare_build.sh
......
...@@ -20,10 +20,11 @@ if [ -f /.dockerenv ] || [ -f ./dockerinit ]; then ...@@ -20,10 +20,11 @@ if [ -f /.dockerenv ] || [ -f ./dockerinit ]; then
# Install phantomjs package # Install phantomjs package
pushd vendor/apt pushd vendor/apt
if [ ! -e "$PHANTOMJS_DEB" ]; then PHANTOMJS_FILE="phantomjs-$PHANTOMJS_VERSION-linux-x86_64"
wget -q "http://ftp.us.debian.org/debian/pool/main/p/phantomjs/$PHANTOMJS_DEB" if [ ! -d "$PHANTOMJS_FILE" ]; then
curl -q "https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMJS_FILE.tar.bz2" | tar jx
fi fi
dpkg -i "$PHANTOMJS_DEB" cp "$PHANTOMJS_FILE/bin/phantomjs" "/usr/bin/"
popd popd
# Try to install packages # Try to install packages
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册