Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
7f65284
Revert "Honor branch specified in .gitmodules"
ariya Mar 6, 2018
d77b8dd
Fixed typo
radarhere May 14, 2016
7079696
Upgrade example to run with Jasmine 2.4.1
tntim96 May 14, 2016
55d3c0f
Update build.py to disable qtbase/qtwebkit unwanted features
glensc Mar 24, 2016
fc6ac9c
[OS X] Allow building with custom OpenSSL library
ariya May 26, 2016
95fdce4
Fix case-insensitive format for renderBase64 (#14361)
elias-win Aug 4, 2016
915b692
Strict mode forbids implicit creation of global property (#14411)
Aug 4, 2016
c094490
Use CircleCI to run build and tests (#13828)
ariya Mar 8, 2018
9bbd1ab
Update selector in useragent example to prevent TypeError
Zajn May 30, 2018
466ae25
Notice on suspended development (#15344)
ariya Jun 2, 2018
b272475
Update issue templates
ariya Sep 13, 2018
09a4839
update ghostdriver for phantomjs 2.5 (#14849)
jesg Jun 18, 2017
36a2995
Remove deprecated files
vitallium Oct 1, 2016
77e1fb9
Remove deprecated files
vitallium Nov 21, 2016
88383c6
[Linux] Override the default QPA platform plugin
vitallium Nov 21, 2016
3789743
[Linux] We need C++11 now
vitallium Nov 21, 2016
c4b1a9b
[Windows] Compile fixes with MinGW
ariya Jun 17, 2018
8bfc658
Experiment with issue auto-closing (#15395)
ariya Dec 25, 2019
1c53215
Mark as version 3.0.0-development
ariya Nov 30, 2019
974393e
Use system-installed Qt (#15341)
ariya Nov 30, 2019
10a3d93
Adjust some API for the latest QtWebKit (#15341)
ariya Nov 30, 2019
e4a26a2
Use CMake build system (#15397)
ariya Nov 30, 2019
f38e1ae
Use the most up-to-date community QtWebKit (#15342)
ariya Dec 25, 2019
bdaa9c8
Temporarily skip failing tests (#15342)
ariya Dec 25, 2019
5da1448
Remove GhostDriver, thereby also built-in WebDriver support (#15399)
ariya Dec 26, 2019
42ce79b
Remove code to deal with non-JavaScript support (#15401)
ariya Dec 28, 2019
1ef8776
C++11 requires a space between literal and string macro (#15401)
ariya Dec 29, 2019
b9211d7
CI with Azure Pipelines (#15403)
ariya Dec 29, 2019
da8e293
Issue auto-close: tweak the message (#15395)
ariya Dec 29, 2019
2b666c9
Add some tests for ES2015 features (#15402)
ariya Dec 31, 2019
8542540
Stale bot: bump the waiting time (#15395)
ariya Dec 31, 2019
0e3c012
Fix building on Windows using MinGW (#15405)
ariya Dec 31, 2019
9aa6177
INSTALL: MinGW instruction (#15405)
ariya Dec 31, 2019
07243f4
CI: Build on Windows using GCC via MinGW (#15405)
ariya Jan 7, 2020
699510f
Format the code using clang-format (#15404)
ariya Jan 8, 2020
be71ec2
CI to check for coding style (#15404)
ariya Jan 8, 2020
4e8248d
Remove astyle completely
vitallium Jan 8, 2020
1141321
Initialize progress right away with QtWebKit 5.212 (#15342)
ariya Jan 10, 2020
ec0f1a8
Remove QString::null deprecation warnings
vitallium Jan 10, 2020
36e2d94
Remove OS2 icons and resources
vitallium Jan 10, 2020
a283cb4
Remove QSsl deprecation warnings
vitallium Jan 10, 2020
cb1b04b
Replace NULL (or 0) with Q_NULLPTR
vitallium Jan 13, 2020
da0ab54
docs: Fix simple typo, wihout -> without
timgates42 Apr 3, 2020
3172296
Switch CI to Github Actions (#15403)
ariya May 13, 2020
08d49a7
GitHub Actions: split the workflows (#15403)
ariya May 25, 2020
9f64f22
GitHub Actions: split the workflows (#15403)
ariya Jun 1, 2020
6efc102
Use clang-format 6.0 to check for code style (#15403, #15404)
ariya Jun 2, 2020
fad2f73
CI: Building on Windows (with MSYS2) using GCC and Clang (#15405)
ariya Jun 2, 2020
01d3397
Fix the outdated post url
Rawaa-Al-Kabbani Jun 9, 2020
0a0b0fa
CI: 32-bit GCC/MSYS2 build for Windows (#15405)
ariya Jul 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/defect-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Defect report
about: Create a report to help us improve

---

**Describe the problem**
A clear and concise description of what the problem is.

**Versions**
Which PhantomJS version? Tip: run `phantomjs --version`
Which OS: Linux, Windows, macOS?

**Steps to Reproduce**
1.
2.
3.

**Actual behavior**
What you observed.

**Expected behavior**
What you expected to happen instead.

**Additional context**
Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/website-incompatibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Website incompatibility
about: Report a website not working properly

---

**Summary**
A concise description of the compatibility issue.

**Test cases**
Any URL or other web page that demonstrates the problem.

**Initial analysis**
If you did a preliminary troubleshooting, please share your finding.

**Additional context**
Add any other context or screenshots about the problem.
12 changes: 0 additions & 12 deletions .github/issue_template.md

This file was deleted.

18 changes: 18 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 30
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 15
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- meta
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: false
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: >
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks.
Therefore, this issue will be automatically closed (see #15395 for more details).
In the future, if we see the need to attend to this issue again, then it will be reopened.
Thank you for your contribution!
20 changes: 20 additions & 0 deletions .github/workflows/amd64_linux_clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: amd64_linux_clang

on: [push, pull_request]

jobs:

amd64_linux_clang:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: sudo apt -y -qq update
- run: sudo apt install -y clang cmake qt5-default libqt5webkit5-dev python
name: Install requirements
- run: clang++ --version && cmake --version && qmake --version && python --version
name: Display tools version
- run: CC=clang CXX=clang++ ./configure
- run: make
- run: file ./bin/phantomjs
- run: ./bin/phantomjs --version
- run: make check
21 changes: 21 additions & 0 deletions .github/workflows/amd64_linux_gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: amd64_linux_gcc

on: [push, pull_request]

jobs:

amd64_linux_gcc:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: sudo apt -y -qq update
- run: sudo apt install -y g++ cmake qt5-default libqt5webkit5-dev python
name: Install requirements
- run: g++ --version && cmake --version && qmake --version && python --version
name: Display tools version
- run: ./configure
- run: make
- run: file ./bin/phantomjs
- run: ./bin/phantomjs --version
- run: make check

31 changes: 31 additions & 0 deletions .github/workflows/amd64_windows_clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: amd64_windows_clang

on: [push, pull_request]

jobs:

amd64_windows_clang:
runs-on: windows-2019
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v2
- run: echo "::add-path::C:\\msys64\\usr\\bin"
- run: pacman --version
- run: pacman -Sy
- run: pacman --noconfirm -S pacman-mirrors
- name: 'Install requirements'
run: pacman --noconfirm -S mingw64/mingw-w64-x86_64-clang mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-qtwebkit mingw64/mingw-w64-x86_64-python2
- run: echo "::add-path::C:\\msys64\\mingw64\\bin"
- run: clang++ --version && cmake --version && qmake --version
name: 'Display tools version'
- run: bash ./configure
name: './configure'
env:
CMAKE_CMD: 'cmake -G "MinGW Makefiles"'
- run: mingw32-make
name: 'make'
- run: file ./bin/phantomjs
- run: ldd ./bin/phantomjs
- run: ./bin/phantomjs --version
30 changes: 30 additions & 0 deletions .github/workflows/amd64_windows_gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: amd64_windows_gcc

on: [push, pull_request]

jobs:

amd64_windows_gcc:
runs-on: windows-2019
env:
CC: gcc
steps:
- uses: actions/checkout@v2
- run: echo "::add-path::C:\\msys64\\usr\\bin"
- run: pacman --version
- run: pacman -Sy
- run: pacman --noconfirm -S pacman-mirrors
- name: 'Install requirements'
run: pacman --noconfirm -S mingw64/mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-cmake mingw64/mingw-w64-x86_64-qtwebkit mingw64/mingw-w64-x86_64-python2
- run: echo "::add-path::C:\\msys64\\mingw64\\bin"
- run: g++ --version && cmake --version && qmake --version
name: 'Display tools version'
- run: bash ./configure
name: './configure'
env:
CMAKE_CMD: 'cmake -G "MinGW Makefiles"'
- run: mingw32-make
name: 'make'
- run: file ./bin/phantomjs
- run: ldd ./bin/phantomjs
- run: ./bin/phantomjs --version
18 changes: 18 additions & 0 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code style

on: [push, pull_request]

jobs:

codestyle:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: sudo apt install -y clang-format-6.0
name: Install clang-format
- run: clang-format-6.0 --version
- run: bash ./tools/format-code.sh
name: Run code formatter
- run: git diff
- run: git diff --quiet HEAD
name: Check if the styling guide is followed
30 changes: 30 additions & 0 deletions .github/workflows/i686_windows_gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: i686_windows_gcc

on: [push, pull_request]

jobs:

i686_windows_gcc:
runs-on: windows-2019
env:
CC: i686-w64-mingw32-gcc
steps:
- uses: actions/checkout@v2
- run: echo "::add-path::C:\\msys64\\usr\\bin"
- run: pacman --version
- run: pacman -Sy
- run: pacman --noconfirm -S pacman-mirrors
- name: 'Install requirements'
run: pacman --noconfirm -S mingw-w64-cross-toolchain mingw32/mingw-w64-i686-cmake mingw32/mingw-w64-i686-qtwebkit mingw32/mingw-w64-i686-python2
- run: echo "::add-path::C:\\msys64\\mingw32\\bin"
- run: i686-w64-mingw32-gcc --version && cmake --version && qmake --version
name: 'Display tools version'
- run: bash ./configure
name: './configure'
env:
CMAKE_CMD: 'cmake -G "MinGW Makefiles"'
- run: mingw32-make
name: 'make'
- run: file ./bin/phantomjs
- run: ldd ./bin/phantomjs
- run: ./bin/phantomjs --version
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,18 @@ bin/
*.class
build/
.gradle/

# CMake
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
*_autogen

11 changes: 0 additions & 11 deletions .gitmodules

This file was deleted.

39 changes: 39 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
cmake_minimum_required(VERSION 3.5.0)
project(phantomjs)

set (CMAKE_CXX_STANDARD 11)

find_package(Qt5 COMPONENTS Core Network WebKitWidgets REQUIRED)
find_package(Threads REQUIRED)

message("Using Qt version ${Qt5Core_VERSION}")
if (Qt5Core_VERSION VERSION_LESS 5.5.0)
message(FATAL_ERROR "This version of Qt is not supported. Please use Qt 5.5 or later")
endif()

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

file(GLOB_RECURSE PHANTOMJS_SOURCES src/*.cpp)
include_directories(src)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(THIRDPARTY_SOURCES src/mongoose/mongoose.c src/qcommandline/qcommandline.cpp src/linenoise/src/linenoise.c)
include_directories(src/linenoise/src)
include_directories(src/mongoose)
include_directories(src/qcommandline)

if (WIN32)
set(EXTRA_LIBS ws2_32)
add_definitions(-DQCOMMANDLINE_STATIC)
else()
set(EXTRA_LIBS dl)
endif()

add_executable(${PROJECT_NAME} src/phantomjs.qrc ${PHANTOMJS_SOURCES} ${THIRDPARTY_SOURCES})
target_link_libraries(${PROJECT_NAME} ${EXTRA_LIBS} Qt5::Core Qt5::Network Qt5::WebKitWidgets Threads::Threads)
install(TARGETS ${PROJECT_NAME} DESTINATION bin)

add_custom_target(check COMMAND python test/run-tests.py -v)
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ For your proposed change, you need to have:
* **an issue** (in the issue tracker) which describe your bug or feature
* **a feature branch** in your git fork

Make sure your code change follows the style guide. To format your code, run `./tools/format-code.sh`.

### Refer the Issue

The commit message needs to link to the issue. This cross-reference is [very important](http://ariya.ofilabs.com/2012/01/small-scale-software-craftsmanship.html) for the following reasons.
Expand Down
Loading