2018-07-31 00:29:42 +08:00
|
|
|
# .travis.yml Travis CI configuration file for HSTR
|
|
|
|
#
|
|
|
|
# Copyright (C) 2014-2018 Martin Dvorak <martin.dvorak@mindforger.com>
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2015-05-11 19:38:36 +08:00
|
|
|
|
2017-10-09 05:12:40 +08:00
|
|
|
os:
|
|
|
|
- linux
|
2015-05-11 19:38:36 +08:00
|
|
|
|
2018-08-11 20:41:42 +08:00
|
|
|
language: c
|
2017-10-09 05:12:40 +08:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2018-08-11 20:41:42 +08:00
|
|
|
- os: linux
|
2015-05-11 19:38:36 +08:00
|
|
|
|
2018-08-11 20:41:42 +08:00
|
|
|
sudo: required
|
|
|
|
dist: trusty # Travis CI provides Precise and Trusty only
|
2015-05-11 19:38:36 +08:00
|
|
|
|
|
|
|
before_install:
|
2018-08-11 20:41:42 +08:00
|
|
|
- sudo apt-get update -qq
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
|
|
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
- eval "${MATRIX_EVAL}"
|
|
|
|
|
|
|
|
install:
|
2018-08-12 17:25:54 +08:00
|
|
|
- sudo apt-get install -qq qttools5-dev-tools ccache
|
|
|
|
- sudo apt-get install -qq automake gcc make libncursesw5-dev libreadline-dev
|
2018-08-11 20:41:42 +08:00
|
|
|
- "export HSTRHOME=`pwd`"
|
|
|
|
|
2018-08-12 17:25:54 +08:00
|
|
|
script:
|
|
|
|
- echo "1) make hstr"
|
2018-08-11 20:41:42 +08:00
|
|
|
- cd "${HSTRHOME}"
|
2018-08-12 17:25:54 +08:00
|
|
|
- cd build/tarball && ./tarball-automake.sh
|
|
|
|
- cd "${HSTRHOME}"
|
|
|
|
- ./configure && make
|
2018-08-22 15:03:24 +08:00
|
|
|
- cd src && ./hstr --version
|
2018-08-12 17:25:54 +08:00
|
|
|
- echo "2) run unit tests"
|
|
|
|
- cd "${HSTRHOME}"
|
2018-08-12 17:41:32 +08:00
|
|
|
- cd build && ./test-units.sh
|