source: subsurface/qt-installer-noninteractive.qs

Last change on this file was 3ae9408, checked in by Dirk Hohndel <dirk@…>, 3 months ago

Add a travis build of subsurface

This runs a subsurface script/build.sh build in travis-ci, and runs the
tests afterwards.

The build runs on the Ubuntu Trusty image, but due to the fact that the
Qt shipped there is to old, it installs a Qt 5.8 from qt.io , and with
some trickery caches it.

Hacked out are things that doesn't build with Qt 5.8, and the rest is
built against WebEngine?.

The tests currently fail, and I really don't know why, but its a clear
indication that they aren't run that often. This cam makes sure they are
run at least. The actual testing is just commented out for that reason.

Signed-off-by: Anton Lundin <glance@…>
Signed-off-by: Dirk Hohndel <dirk@…>

  • Property mode set to 100644
File size: 1.9 KB
Line 
1// http://stackoverflow.com/a/34032216/78204
2
3function Controller() {
4    installer.autoRejectMessageBoxes();
5    installer.setMessageBoxAutomaticAnswer("OverwriteTargetDirectory", QMessageBox.Yes);
6    installer.installationFinished.connect(function() {
7        gui.clickButton(buttons.NextButton);
8    })
9}
10
11Controller.prototype.WelcomePageCallback = function() {
12    gui.clickButton(buttons.NextButton);
13}
14
15Controller.prototype.CredentialsPageCallback = function() {
16    gui.clickButton(buttons.NextButton);
17}
18
19Controller.prototype.IntroductionPageCallback = function() {
20    gui.clickButton(buttons.NextButton);
21}
22
23Controller.prototype.TargetDirectoryPageCallback = function()
24{
25    //gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("HomeDir") + "/Qt");
26    gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("InstallerDirPath") + "/Qt");
27    //gui.currentPageWidget().TargetDirectoryLineEdit.setText("/scratch/Qt");
28    gui.clickButton(buttons.NextButton);
29}
30
31Controller.prototype.ComponentSelectionPageCallback = function() {
32    var widget = gui.currentPageWidget();
33
34    widget.selectAll();
35    widget.deselectComponent('qt.58.src');
36
37    gui.clickButton(buttons.NextButton);
38}
39
40Controller.prototype.LicenseAgreementPageCallback = function() {
41    gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
42    gui.clickButton(buttons.NextButton);
43}
44
45Controller.prototype.StartMenuDirectoryPageCallback = function() {
46    gui.clickButton(buttons.NextButton);
47}
48
49Controller.prototype.ReadyForInstallationPageCallback = function()
50{
51    gui.clickButton(buttons.NextButton);
52}
53
54Controller.prototype.FinishedPageCallback = function() {
55var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
56if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
57    checkBoxForm.launchQtCreatorCheckBox.checked = false;
58}
59    gui.clickButton(buttons.FinishButton);
60}
Note: See TracBrowser for help on using the repository browser.