-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
131 lines (123 loc) · 4.04 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
sudo: false
language: generic
cache:
apt: true
directories:
- /tmp/tools
matrix:
include:
- env: CXX=g++-8
addons:
apt:
packages:
- g++-8
- libjpeg8-dev
- libpng-dev
- libasound2-dev
- alsa-utils
- alsa-oss
- libx11-dev
- libxft-dev
- libxcursor-dev
sources:
- ubuntu-toolchain-r-test
allow_failures:
- env: CXX=clang++-3.8 CC=clang-3.8
addons:
apt:
packages:
- clang-3.8
- libjpeg8-dev
- libpng-dev
- libasound2-dev
- alsa-utils
- alsa-oss
- libx11-dev
- libxft-dev
- libxcursor-dev
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
before_install:
# donwload, compile and install nana first
# we are in: 'user'/nana-demo/
- cd ..
# we are in: 'user'/
- git clone --depth=1 --branch=minor_change https://github.com/qPCR4vir/nana.git nana
# now we have 'user'/nana-demo, 'user'/nana/ and we are in: 'user'/
- export PATH="$HOME/bin:$PATH"
- wget --no-check-certificate --no-clobber -O /tmp/tools/cmake https://cmake.org/files/v3.12/cmake-3.12.0-rc1-Linux-x86_64.sh || true
- chmod -R +x /tmp/tools
install:
- /tmp/tools/cmake --prefix="$HOME" --exclude-subdir
before_script :
- mkdir demo-build
- cd demo-build
# now we have 'user'/nana-demo, 'user'/nana/ , 'user'/demo-build/ and we are in: 'user'/demo-build/
services:
# travis don't have a physical monitor. We need to install an emulator:
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
- xvfb
script:
- cmake -G"Unix Makefiles" ../nana-demo -DCMAKE_INSTALL_PREFIX=.. -DNANA_CMAKE_ENABLE_JPEG=ON -DNANA_CMAKE_ENABLE_PNG=OFF -DNANA_CMAKE_BUILD_DEMOS=ON -DNANA_CMAKE_ENABLE_AUDIO=OFF -DNANA_CMAKE_FIND_BOOST_FILESYSTEM=OFF -DNANA_CMAKE_BOOST_FILESYSTEM_FORCE=OFF -DNANA_CMAKE_INCLUDE_EXPERIMENTAL_DEMOS=OFF -DNANA_CMAKE_AUTOMATIC_GUI_TESTING=ON -DNANA_CMAKE_INSTALL=OFF
- make install
# - ctest # todo set correct working directory, and show output
# we have installed in 'user'/ ('user'/demo-build/..), and cmake created 'user'/nana-test/
# todo: separate resources from sources (a directory for images)
- ls -lh
# we were still in: 'user'/demo-build/
- cd ../nana-test/bin
- ls -lh
- ./a_group_impl
- ./animate-bmp
- ./audio_player
# - ./audio_player_simple # just play music too long
- ./background-effects
- ./calculator # COOL !!! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L924
- ./categ
- ./clicked
- ./decore
- ./dock
- ./drag-button
- ./draw
- ./file_explorer
- ./example.button
- ./example_combox # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1044
- ./example_listbox
- ./example_menu # OK ! https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1022
- ./filebox-txt # https://travis-ci.org/qPCR4vir/nana/builds/621103509#L1068
- ./folder_tree_nana # todo ok but failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1193
- ./folder_tree_std # todo ok but failed https://travis-ci.org/qPCR4vir/nana/builds/621116812#L1200
- ./framework_design_1
- ./framework_design_2
- ./framework_design_3
- ./group
- ./HelloWord
- ./helloword_quit # ok
- ./inputbox # ok
- ./label_listener
- ./lambda_event.Cpp11
- ./listbox_inline_widget
- ./listbox_Resolver
- ./loader_1
- ./loader_2 # ok
- ./main
- ./mbox
- ./menu_debug
- ./menu_popuper
- ./modal_form # ok
- ./MontiHall # ok
- ./place_login
- ./helloworld_demo # ok
- ./notepad # ok !!
- ./widget_show2 # ok !!
- ./widget_show # ok !!
- ./png
- ./screen # ok
- ./stretch_image
- ./textbox_line_number
- ./thread-pool # ok
- ./threading # ok
- ./various_events
- ./window-dragger # ok
- ./windows-subclassing