This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
56 lines (50 loc) · 2.7 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
language: c
compiler: gcc
dist: xenial
os: linux
env:
global:
- MY_PV=3.0.0_alpha6
install:
- sudo add-apt-repository -y ppa:niko2040/e19
- sudo apt-get -qq update || true
- sudo apt-get install -y gettext libc6-dbg libpam-ck-connector libck-connector0 libck-connector-dev libefl libefl-dbg libefl-dev python3-pip python3-setuptools libpam0g-dev
- if [ "${SONAR}" ]; then sudo apt-get install -y enlightenment xorg xserver-xorg-video-dummy ; fi
- sudo pip3 install --upgrade pip
- sudo pip3 install meson==0.44
- mkdir .bin
- curl -L https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip -o .bin/ninja-linux.zip
- unzip .bin/ninja-linux.zip -d .bin
- if [ "${SONAR}" ]; then sudo cp -v tests/xorg.conf /etc/X11/xorg.conf; sudo rm -fv /usr/lib/xorg/modules/input/mouse_drv.so ; fi
before_script:
- export PATH=$PATH:$PWD/.bin
jobs:
include:
- stage: Test builds
- env: OPTS="-Dconsolekit=false"
- env: OPTS="-Dpam=false"
- env: OPTS="-Dconsolekit=false -Dpam=false"
- stage: Sonar Cloud
cache:
directories:
- $HOME/.sonar/cache
env:
- OPTS="--buildtype=debug -Dconsolekit=true -Dpam=true -Dlogind=true"
- SONAR="build-wrapper-linux-x86-64 --out-dir bw-output"
addons:
sonarcloud:
organization: obsidian-studiosinc-github
token:
secure: q5YHyZC+bDJqd5UEnedOc4H1qzdBVTVyez30AJF/+ZewXnc/Hp5SOsj5GKgehoFpZWYLsS9mVxLG3eGFTvELlWx8gQL0iwadwD1Jph7nzT+cX0oDJYt3UdPzZvZxtkogQIhEdco5bWDny3SsCqpa8bjWnEiB/6gi5elSRw5Yi68JmEeqcMvgQzmtAx8wFvD1a2SeEFo/ctNMJYA2UszMLrsGSZtbhysN4xgKKKOygWRefH+B0UvKybVREVYYd0kuJ2F0JlfLW9BoBhw1dWhd9yTRp/++Phgc6a5mhdMCQk6xXAVsz3EMRjNbCITFkUd5hRI+9ye5VlL5WheJ2zwqkVkhSulsJkzyGlkuJbxYgarfzktBImhKlVrIggXtsEKikTZEgokUpl0Kee9/AbcYmonTJqhSN87XNcy5cH7q7+pUdJui+wov8NZIRDMU/S7sDB2UpeqjSILoQ7cyWLf/cFglQ2aYMcTvn1JIiuvT3boVqMQqWtphyHj4cQfzU6py6bfHAlugFKDdpu0t6xIZnbZHZGz+2uLcQg4mqGeqM0RGA5b+Pi++cbu+BdVzJScp0CQ8ibQxzAgyJxzfGZT7Z2RH5kzsJIpbbfAU7V2cznHMVwpgbbcJmOsrlkWp8LjxDZIy0ftnIA0eSKfeJ3cr6OPFmWtcYDu9Fw7TW4q0tu4=
script:
- meson --prefix /usr ${OPTS} . build
- ${SONAR} .bin/ninja -C build
- if [ "${SONAR}" ]; then sudo .bin/ninja -C build install ; fi
- if [ "${SONAR}" ]; then sudo tests/run-tests.sh ; fi
- if [ -f /var/log/entrance.log ]; then cat /var/log/entrance.log ; fi
- if [ "${SONAR}" ]; then sudo chmod 0777 /home/travis; find /home/travis -type d -exec chmod 0777 {} \;; fi
- if [ "${SONAR}" ]; then sudo find . -name '*.gcda' -exec chmod -v 0666 {} \;; fi
- if [ "${SONAR}" ]; then cd build ; find . -name '*.gcno' -exec sh -c 'gcov -b -p {} -o $(dirname {})' \;; cd ../ ; fi
- if [ "${SONAR}" ]; then sonar-scanner; fi
notifications:
email: false