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

Start to use Sauce Labs for cross-browser automated testing #174

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@ env:
- CXX=g++-4.8
before_install:
# Qt
- sudo apt-add-repository --yes ppa:beineri/opt-qt551-trusty
- sudo apt-get update -qq
#- sudo apt-add-repository --yes ppa:beineri/opt-qt551-trusty
#- sudo apt-get update -qq
- export TZ=America/Los_Angeles
- export MYIP=$(dig -4 @resolver1.opendns.com ANY myip.opendns.com +short)
install:
# Qt
- sudo apt-get -y install qt55[QTPACKAGE]
- sudo apt-get -y install qmlscene qt5-default qtdeclarative5-dev qtbase5-dev
#- sudo apt-get -y install qt55[QTPACKAGE]
#- sudo apt-get -y install qmlscene qt5-default qtdeclarative5-dev qtbase5-dev
- rm -rf node_modules
- npm install
- export PATH=$PWD/node_modules/.bin:$PATH
- export NODE_OPTIONS="--max-old-space-size=3072"
script:
# [Error] module QtQuick is not installed
- source /opt/qt55/bin/qt55-env.sh
#- source /opt/qt55/bin/qt55-env.sh
# [Error] [exec] QXcbConnection: Could not connect to display
- export QT_QPA_PLATFORM=offscreen
#- export QT_QPA_PLATFORM=offscreen
# [Error] QFontDatabase: Cannot find font directory /usr/lib/x86_64-linux-gnu/fonts - is Qt installed correctly?
- sudo ln -s /usr/share/fonts /usr/lib/x86_64-linux-gnu/fonts
#- sudo ln -s /usr/share/fonts /usr/lib/x86_64-linux-gnu/fonts

# iLib full build / Run nodeunit tests
- ant clean test
Expand All @@ -37,5 +38,10 @@ branches:
only:
- master
- development
addons:
sauce_connect:
username: [email protected]
jwt:
secure:
sudo: required
dist: trusty
33 changes: 18 additions & 15 deletions qt/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ limitations under the License.
</exec>
</target>

<target name="export" depends="filereader" description="Create all objects and export them to the top level dir for packaging">
<target name="export" description="Create all objects and export them to the top level dir for packaging">
</target>

<target name="export.qt" depends="filereader" description="Create all objects and export them to the top level dir for packaging">
<mkdir dir="${build.export}/qt/${os.name}-${os.arch}/FS"/>
<mkdir dir= "${build.filereader}/imports/FS"/>
<copy todir="${build.export}/qt/${os.name}-${os.arch}/FS">
Expand Down Expand Up @@ -148,7 +151,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.calendar" depends="export" description="Run the calendar unit tests in the qt test framework.">
<target name="test.calendar" depends="export.qt" description="Run the calendar unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -161,7 +164,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.collate" depends="export" description="Run the collate unit tests in the qt test framework.">
<target name="test.collate" depends="export.qt" description="Run the collate unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -174,7 +177,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.ctype" depends="export" description="Run the ctype unit tests in the qt test framework.">
<target name="test.ctype" depends="export.qt" description="Run the ctype unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -187,7 +190,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.date" depends="export" description="Run the date unit tests in the qt test framework.">
<target name="test.date" depends="export.qt" description="Run the date unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -200,7 +203,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.daterange" depends="export" description="Run the daterange unit tests in the qt test framework.">
<target name="test.daterange" depends="export.qt" description="Run the daterange unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -213,7 +216,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.durfmt" depends="export" description="Run the durfmt unit tests in the qt test framework.">
<target name="test.durfmt" depends="export.qt" description="Run the durfmt unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -226,7 +229,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.maps" depends="export" description="Run the maps unit tests in the qt test framework.">
<target name="test.maps" depends="export.qt" description="Run the maps unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -239,7 +242,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.name" depends="export" description="Run the name unit tests in the qt test framework.">
<target name="test.name" depends="export.qt" description="Run the name unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -252,7 +255,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.number" depends="export" description="Run the number unit tests in the qt test framework.">
<target name="test.number" depends="export.qt" description="Run the number unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -265,7 +268,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.phone" depends="export" description="Run the phone unit tests in the qt test framework.">
<target name="test.phone" depends="export.qt" description="Run the phone unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -278,7 +281,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.root" depends="export" description="Run the root unit tests in the qt test framework.">
<target name="test.root" depends="export.qt" description="Run the root unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -291,7 +294,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.strings_ext" depends="export" description="Run the strings_ext unit tests in the qt test framework.">
<target name="test.strings_ext" depends="export.qt" description="Run the strings_ext unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -304,7 +307,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.units" depends="export" description="Run the units unit tests in the qt test framework.">
<target name="test.units" depends="export.qt" description="Run the units unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand All @@ -317,7 +320,7 @@ limitations under the License.
</sequential>
</target>

<target name="test.util" depends="export" description="Run the util unit tests in the qt test framework.">
<target name="test.util" depends="export.qt" description="Run the util unit tests in the qt test framework.">
<sequential>
<exec osfamily="unix" executable="qmlscene" dir="${build.base}/NodeunitTest" failifexecutionfails="true" failonerror="true">
<env key="QML2_IMPORT_PATH" value="../FileReader/imports"/>
Expand Down