forked from pawelsalawa/sqlitestudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: cpp
compiler: gcc
branches:
except:
- l10n_master
before_install:
- sudo add-apt-repository -y ppa:beineri/opt-qt-5.10.1-xenial
- sudo apt-get update -qq
- sudo apt-get remove sqlite3 libsqlite3-0
- sudo apt-get purge sqlite3 libsqlite3-0
- sudo apt-get install -qq mesa-common-dev libgl1-mesa-dev qt510base qt510imageformats qt510script qt510svg qt510tools
- mkdir deps
- cd deps
- wget https://www.dropbox.com/s/y2emwb4jjeethlm/sqlite-2.8.17.tar.gz?dl=1 -O sqlite-2.8.17.tar.gz
- tar xzf sqlite-2.8.17.tar.gz
- cd sqlite-2.8.17
- ./configure
- make
- sudo make install
- sqlite -version || true
- cd ..
- wget http://sqlite.org/2018/sqlite-autoconf-3230100.tar.gz
- tar xzf sqlite-autoconf-3230100.tar.gz
- cd sqlite-autoconf-3230100
- ./configure --enable-fts5 --enable-json1 --enable-session
- make
- sudo make install
- sqlite3 --version
- cd ..
- sudo apt-get install -qq libtcl8.6 tcl8.6-dev
before_script:
- mkdir -p ../output/build/Plugins
- . /opt/qt510/bin/qt510-env.sh
- qmake --version
script:
- cd ../output/build
- test $TRAVIS_BRANCH = "master" && qmake DEFINES+=tests CONFIG+=debug ../../SQLiteStudio3 || true
- test $TRAVIS_BRANCH != "master" && qmake CONFIG+=portable ../../SQLiteStudio3 || true
- make -j 2
- cd Plugins
- test $TRAVIS_BRANCH = "master" && qmake CONFIG+=debug ../../../Plugins || true
- test $TRAVIS_BRANCH != "master" && qmake CONFIG+=portable ../../../Plugins || true
- make -j 2
- test $TRAVIS_BRANCH = "master" && cd ../../SQLiteStudio || true
- test $TRAVIS_BRANCH = "master" && ls -l || true
- test $TRAVIS_BRANCH = "master" && export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" || true
- test $TRAVIS_BRANCH = "master" && for f in tst_*; do ./$f || break 0; done || true