1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-16 04:42:53 +08:00
QXlsx/.travis.yml
2018-12-20 18:53:17 +09:00

48 lines
961 B
YAML

# .travis.yml (Travis CI)
#
# QXlsx https://github.com/j2doll/QXlsx
#
language: c++
compiler: gcc
sudo: require
dist: xenial # Ubuntu Xenial 16.04, Trusty 14.04, Precise 12.04
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
# gcc 7
- sudo apt install g++-7
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
- sudo update-alternatives --config gcc
- gcc --version
- g++ --version
# Qt
- sudo apt-get install qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev
- sudo apt-get install qt5-default qttools5-dev-tools qtbase5-private-dev
install:
script:
# QXlsx library
- cd QXlsx
- qmake QXlsx.pro
- make
# HelloWorld example
- cd ../HelloWorld
- qmake HelloWorld.pro
- make
- ./HelloWorld
# TestExcel exmaple
- cd ../TestExcel
- qmake TestExcel.pro
- make
- ./TestExcel
after_success: