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

54 lines
1.1 KiB
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
#- sudo add-apt-repository ppa:ubuntu-toolchain-r/test
#- sudo apt update
# sudo add-apt-repository ppa:jonathonf/gcc-7.1
# sudo apt-get update
# gcc 7
# - sudo apt-get install gcc-7 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
# check gcc version
- 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: