Skip to content

Commit 76cc2d5

Browse files
authored
Preparation for release 1.6 (#68)
* remove CI builds with Qt4 due to end of support by CI platforms * reduce number of builds with Qt5, build only with LTS versions * minor updates in Readme.md and code style changes
1 parent 4ec26bc commit 76cc2d5

22 files changed

+468
-794
lines changed

.travis.yml

Lines changed: 18 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -1,190 +1,57 @@
11
language: cpp
22

3-
matrix:
3+
jobs:
44
include:
55
- os: linux
6-
dist: trusty
7-
sudo: required
8-
compiler: gcc
9-
env:
10-
- QT_BASE=48
11-
- os: linux
12-
dist: trusty
13-
sudo: required
14-
compiler: gcc
15-
env:
16-
- QT_BASE=48 USE_CMAKE=true
17-
- os: osx
18-
compiler: clang
19-
env:
20-
- QT_BASE=48
21-
- os: osx
22-
compiler: clang
23-
env:
24-
- QT_BASE=48 USE_CMAKE=true
25-
- os: linux
26-
dist: trusty
27-
sudo: required
28-
compiler: gcc
29-
env:
30-
- QT_BASE=51 USE_CMAKE=true
31-
- os: linux
32-
dist: trusty
33-
sudo: required
34-
compiler: gcc
35-
env:
36-
- QT_BASE=52 USE_CMAKE=true
37-
- os: linux
38-
dist: trusty
39-
sudo: required
40-
compiler: gcc
41-
env:
42-
- QT_BASE=53 USE_CMAKE=true
43-
- os: linux
44-
dist: trusty
45-
sudo: required
46-
compiler: gcc
47-
env:
48-
- QT_BASE=54 USE_CMAKE=true
49-
- os: linux
50-
dist: trusty
51-
sudo: required
6+
dist: xenial
527
compiler: gcc
538
env:
54-
- QT_BASE=55 USE_CMAKE=true
9+
- QT_BASE=56
5510
- os: linux
56-
dist: trusty
57-
sudo: required
11+
dist: xenial
5812
compiler: gcc
5913
env:
6014
- QT_BASE=56 USE_CMAKE=true
61-
- os: linux
62-
dist: trusty
63-
sudo: required
64-
compiler: gcc
65-
env:
66-
- QT_BASE=57 USE_CMAKE=true
67-
- os: linux
68-
dist: trusty
69-
sudo: required
70-
compiler: gcc
71-
env:
72-
- QT_BASE=58 USE_CMAKE=true
73-
- os: linux
74-
dist: trusty
75-
sudo: required
76-
compiler: gcc
77-
env:
78-
- QT_BASE=59 USE_CMAKE=true
79-
- os: linux
80-
dist: trusty
81-
sudo: required
82-
compiler: gcc
83-
env:
84-
- QT_BASE=510 USE_CMAKE=true
8515
- os: linux
8616
dist: xenial
8717
compiler: gcc
8818
env:
89-
- QT_BASE=511 USE_CMAKE=true
19+
- QT_BASE=59 USE_CMAKE=true
9020
- os: linux
91-
dist: xenial
21+
dist: focal
9222
compiler: gcc
9323
env:
9424
- QT_BASE=512 USE_CMAKE=true
9525
- os: linux
96-
dist: xenial
26+
dist: focal
9727
compiler: gcc
9828
env:
99-
- QT_BASE=513 USE_CMAKE=true
100-
- os: osx
101-
compiler: clang
102-
env:
103-
- QT_BASE=513
104-
- os: osx
105-
compiler: clang
106-
env:
107-
- QT_BASE=513 USE_CMAKE=true
29+
- QT_BASE=515
10830
- os: linux
109-
dist: xenial
31+
dist: focal
11032
compiler: gcc
11133
env:
112-
- QT_BASE=514
113-
- os: linux
114-
dist: xenial
115-
compiler: gcc
116-
env:
117-
- QT_BASE=514 USE_CMAKE=true
34+
- QT_BASE=515 USE_CMAKE=true
11835

11936
before_install:
120-
- if [[ "$QT_BASE" = "48" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt487-trusty -y; fi
121-
- if [ "$QT_BASE" = "51" ]; then sudo add-apt-repository ppa:beineri/opt-qt511-trusty -y; fi
122-
- if [ "$QT_BASE" = "52" ]; then sudo add-apt-repository ppa:beineri/opt-qt521-trusty -y; fi
123-
- if [ "$QT_BASE" = "53" ]; then sudo add-apt-repository ppa:beineri/opt-qt532-trusty -y; fi
124-
- if [ "$QT_BASE" = "54" ]; then sudo add-apt-repository ppa:beineri/opt-qt542-trusty -y; fi
125-
- if [ "$QT_BASE" = "55" ]; then sudo add-apt-repository ppa:beineri/opt-qt551-trusty -y; fi
126-
- if [ "$QT_BASE" = "56" ]; then sudo add-apt-repository ppa:beineri/opt-qt563-trusty -y; fi
127-
- if [ "$QT_BASE" = "57" ]; then sudo add-apt-repository ppa:beineri/opt-qt571-trusty -y; fi
128-
- if [ "$QT_BASE" = "58" ]; then sudo add-apt-repository ppa:beineri/opt-qt58-trusty -y; fi
129-
- if [ "$QT_BASE" = "59" ]; then sudo add-apt-repository ppa:beineri/opt-qt597-trusty -y; fi
130-
- if [ "$QT_BASE" = "510" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y; fi
131-
- if [ "$QT_BASE" = "511" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.11.3-xenial -y; fi
132-
- if [ "$QT_BASE" = "512" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.12.8-xenial -y; fi
133-
- if [[ "$QT_BASE" = "513" && "$TRAVIS_OS_NAME" = "linux" ]]; then sudo add-apt-repository ppa:beineri/opt-qt-5.13.2-xenial -y; fi
134-
- if [ "$QT_BASE" = "514" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.14.2-xenial -y; fi
135-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
136-
sudo apt-get update -qq;
137-
else
138-
brew update;
139-
fi
37+
- if [ "$QT_BASE" = "56" ]; then sudo add-apt-repository ppa:beineri/opt-qt563-xenial -y; fi
38+
- if [ "$QT_BASE" = "59" ]; then sudo add-apt-repository ppa:beineri/opt-qt597-xenial -y; fi
39+
- if [ "$QT_BASE" = "512" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.12.10-focal -y; fi
40+
- if [ "$QT_BASE" = "515" ]; then sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-focal -y; fi
41+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi
14042

14143
install:
142-
- if [ "$QT_BASE" = "48" ]; then
143-
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
144-
sudo apt-get install -qq opt-qt4-qmake opt-qt4-dev-tools; source /opt/qt-4.8/bin/qt-4.8-env.sh;
145-
else
146-
brew tap cartr/qt4;
147-
brew tap-pin cartr/qt4;
148-
brew install qt@4;
149-
brew link --force qt@4;
150-
fi
151-
fi
152-
- if [ "$QT_BASE" = "51" ]; then sudo apt-get install -qq qt51base; source /opt/qt51/bin/qt51-env.sh; fi
153-
- if [ "$QT_BASE" = "52" ]; then sudo apt-get install -qq qt52base; source /opt/qt52/bin/qt52-env.sh; fi
154-
- if [ "$QT_BASE" = "53" ]; then sudo apt-get install -qq qt53base; source /opt/qt53/bin/qt53-env.sh; fi
155-
- if [ "$QT_BASE" = "54" ]; then sudo apt-get install -qq qt54base; source /opt/qt54/bin/qt54-env.sh; fi
156-
- if [ "$QT_BASE" = "55" ]; then sudo apt-get install -qq qt55base; source /opt/qt55/bin/qt55-env.sh; fi
15744
- if [ "$QT_BASE" = "56" ]; then sudo apt-get install -qq qt56base; source /opt/qt56/bin/qt56-env.sh; fi
158-
- if [ "$QT_BASE" = "57" ]; then sudo apt-get install -qq qt57base; source /opt/qt57/bin/qt57-env.sh; fi
159-
- if [ "$QT_BASE" = "58" ]; then sudo apt-get install -qq qt58base; source /opt/qt58/bin/qt58-env.sh; fi
16045
- if [ "$QT_BASE" = "59" ]; then sudo apt-get install -qq qt59base; source /opt/qt59/bin/qt59-env.sh; fi
161-
- if [ "$QT_BASE" = "510" ]; then sudo apt-get install -qq qt510base; source /opt/qt510/bin/qt510-env.sh; fi
162-
- if [ "$QT_BASE" = "511" ]; then sudo apt-get install -qq qt511base; source /opt/qt511/bin/qt511-env.sh; fi
16346
- if [ "$QT_BASE" = "512" ]; then sudo apt-get install -qq qt512base; source /opt/qt512/bin/qt512-env.sh; fi
164-
- if [ "$QT_BASE" = "513" ]; then
165-
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
166-
sudo apt-get install -qq qt513base; source /opt/qt513/bin/qt513-env.sh;
167-
else
168-
brew install qt;
169-
brew link --force qt;
170-
export HOMEBREW_QT5_VERSION=$(brew list --versions qt | rev | cut -d' ' -f1 | rev);
171-
sudo ln -s /usr/local/Cellar/qt/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs;
172-
echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile;
173-
fi
174-
fi
175-
- if [ "$QT_BASE" = "514" ]; then sudo apt-get install -qq qt514base; source /opt/qt514/bin/qt514-env.sh; fi
47+
- if [ "$QT_BASE" = "515" ]; then sudo apt-get install -qq qt515base; source /opt/qt515/bin/qt515-env.sh; fi
17648

17749
script:
17850
# build library and tests, install library
17951
- mkdir ./build && cd ./build
18052
- if [ "$USE_CMAKE" = "true" ]; then
18153
cmake --version;
182-
if [ "$QT_BASE" = "48" ]; then
183-
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_QT4=ON ..;
184-
else
185-
cmake -DCMAKE_BUILD_TYPE=Release ..;
186-
fi
187-
54+
cmake -DCMAKE_BUILD_TYPE=Release ..;
18855
make;
18956
sudo make install;
19057

@@ -200,11 +67,6 @@ script:
20067
make;
20168
fi
20269

203-
# download test file
204-
#- wget -O worldcitiespop.txt.gz https://raw.github.com/apache/commons-csv/master/src/test/resources/perf/worldcitiespop.txt.gz
205-
#- gunzip worldcitiespop.txt.gz
206-
#- mv ./worldcitiespop.txt ./data
207-
20870
# run tests
20971
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/../
21072
- chmod 777 qtcsv_tests
@@ -229,4 +91,4 @@ script:
22991
fi
23092

23193
notifications:
232-
email: false
94+
email: true

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required (VERSION 3.0)
22

3-
project (qtcsv VERSION 1.5.0 LANGUAGES CXX)
3+
project (qtcsv VERSION 1.6.0 LANGUAGES CXX)
44

55
# set options
66
option(STATIC_LIB "build as static lib if ON, otherwise build shared lib" OFF)

0 commit comments

Comments
 (0)