| 
									
										
										
										
											2017-11-08 11:51:24 -08:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # prep things so we can build for Linux | 
					
						
							|  |  |  | # we have a custom built Qt some gives us just what we need, including QtWebKit | 
					
						
							| 
									
										
										
										
											2017-11-09 12:38:04 -08:00
										 |  |  | # | 
					
						
							|  |  |  | # this is built from the latest version as of 2017-11-09 in the 5.9 branch and | 
					
						
							|  |  |  | # therefore calls itself Qt-5.9.3 | 
					
						
							| 
									
										
										
										
											2017-11-08 11:51:24 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-09 12:41:30 -08:00
										 |  |  | set -x | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-10 22:40:32 -08:00
										 |  |  | # Travis only pulls shallow repos. But that messes with git describe. | 
					
						
							|  |  |  | # Sorry Travis, fetching the whole thing and the tags as well... | 
					
						
							|  |  |  | git fetch --unshallow | 
					
						
							|  |  |  | git pull --tags | 
					
						
							|  |  |  | git describe | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-09 12:38:04 -08:00
										 |  |  | export QT_ROOT=$PWD/Qt/5.9.3 | 
					
						
							| 
									
										
										
										
											2017-11-08 11:51:24 -08:00
										 |  |  | rm -rf Qt | 
					
						
							| 
									
										
										
										
											2017-11-09 12:38:04 -08:00
										 |  |  | mkdir -p $QT_ROOT | 
					
						
							| 
									
										
										
										
											2017-11-10 22:07:36 -08:00
										 |  |  | wget -q http://subsurface-divelog.org/downloads/Qt-5.9.3-trusty.tar.xz | 
					
						
							| 
									
										
										
										
											2017-11-09 12:38:04 -08:00
										 |  |  | tar -xJ -C $QT_ROOT -f Qt-5.9.3-trusty.tar.xz | 
					
						
							| 
									
										
										
										
											2017-11-08 11:51:24 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-09 12:41:30 -08:00
										 |  |  | sudo ln -s $QT_ROOT /usr/local/Qt-5.9.3 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-08 11:51:24 -08:00
										 |  |  | # TestPreferences uses gui calls, so run a xvfb so it has something to talk to | 
					
						
							|  |  |  | export DISPLAY=:99.0 | 
					
						
							|  |  |  | sh -e /etc/init.d/xvfb start | 
					
						
							|  |  |  | 
 |