forked from ksnip/kImageAnnotator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (28 loc) · 816 Bytes
/
.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
language: cpp
compiler: gcc
sudo: required
dist: xenial
services: xvfb
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt594-xenial -y
- sudo apt-get update -qq
install:
- sudo apt-get -y install mesa-common-dev libglu1-mesa-dev qt59base qt59tools qt59svg
- source /opt/qt*/bin/qt*-env.sh
- git clone git://github.com/ksnip/kColorPicker
- cd kColorPicker
- mkdir build && cd build
- cmake ..
- make && sudo make install
- cd ../..
jobs:
include:
- stage: build
script:
- mkdir build ; cd build
- cmake .. ; make VERBOSE=1
- stage: test
script:
- mkdir build ; cd build
- cmake .. -DBUILD_TESTS=ON ; make
- xvfb-run --auto-servernum --server-num=1 --server-args="-screen 0 1024x768x24" make test CTEST_OUTPUT_ON_FAILURE=1