forked from openSUSE/libzypp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (26 loc) · 1.28 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
sudo: required
dist: trusty
group: stable
language: c++
os: linux
services:
- docker
before_install:
- cat /proc/cpuinfo
- docker pull opensuse:tumbleweed
- docker run -i -d --name test opensuse:tumbleweed bash
- docker exec test zypper ref
- docker exec test zypper in -y --recommends cmake openssl-devel boost-devel dejagnu doxygen gcc-c++ gettext-devel graphviz libxml2-devel libproxy-devel pkg-config libsolv-devel libsolv-tools ruby rpm-devel libcurl-devel libboost_program_options*-devel libboost_test*-devel libudev-devel xorg-x11-fonts-core xorg-x11-fonts texlive-lm-fonts libgpgme-devel gpgme libboost_thread1_*
- docker exec test zypper in -y "rubygem(asciidoctor)"
script:
- docker cp ../libzypp/ test:/root
- docker exec test mkdir /root/build
- docker exec test bash -c "cd /root/build && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=1 ../libzypp"
- docker exec test bash -c "cd /root/build && make -j4 VERBOSE=1"
- docker exec test bash -c "cd /root/build && make -j4 -C doc/autodoc"
- docker exec test bash -c "cd /root/build && make -j4 -C po translations"
- docker exec test bash -c "cd /root/build && make -j4 -C tests"
- docker exec test bash -c "cd /root/build/tests && LD_LIBRARY_PATH=\$PWD/../zypp:\$LD_LIBRARY_PATH ctest -VV ."
on:
repo: openSUSE/libzypp
tags: true