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 0
/
.travis.yml
83 lines (79 loc) · 4.54 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
language: c
compiler: gcc
sudo: required
dist: focal
env:
global:
- MY_PV=0.2.8
install:
- sudo apt-get -qq update || true
- sudo apt-get install -y cmake rpm libc6-dbg openjdk-11-jdk-headless musl-tools shellcheck valgrind
- if [ ! "${SHIPPABLE}" ]; then wget https://github.com/Obsidian-StudiosInc/travis-ci-musl-argp/releases/download/1/argp-standalone_1.3-1_amd64.deb ; fi
- if [ ! "${SHIPPABLE}" ]; then sudo dpkg -i *.deb ; fi
- pushd samples
- sudo cp -r etc usr /
- cd dpkg
- sudo cp -r etc /
- popd
jobs:
include:
- stage: Test build
# - stage: Test build musl
# env:
# - CC="musl-gcc"
# - OPTS=-DHAVE_MUSL=ON
- stage: SonarQube Scan
env:
- SONAR="build-wrapper-linux-x86-64 --out-dir bw-output"
cache:
directories:
- $HOME/.sonar/cache
addons:
sonarcloud:
organization: obsidian-studiosinc-github
token:
secure: MUdFKjOdltZ5t2rRBRaXavZmUsO90rY2KcW2d+900d3Ybw/VwIVc4wJr8kovuWX3L6pHLRiOq774iQjnvaGFfZ2o8dpS1ozxfpQo4NGw7HB4/qhRP74uqIrcO2YBOHuMu8MKsha6WXOLlFPcvVtA4pmiHW96iB2/PTah9n6vwYtQ/WOj5W3LN/TKQARGVTa82t84gCUXs0fbtTQSZNpoP9BWZjjunJD9mTrexQ4oJrTEdZNZV4bnOfMn6i9EJcaFR4hbGRIAjE51hdKDMHrqzdog/yryYPSoCdFHlKvrhTo8xNBsrHYPXTTbOgZ/TcO/JmzIu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LF8=
file:
- dist/jem-${MY_PV}.x86_64.deb
- dist/jem-${MY_PV}.x86_64.rpm
on:
repo: Obsidian-StudiosInc/jem
branch: master
tags: true
skip_cleanup: true
script:
- cmake -D CMAKE_BUILD_TYPE=Release -D BUILD_DOC=ON ./
- make package
- stage: Coverity Scan
env:
- secure: F0lXt9unZtjohT5NUZc4Zom9sUkXkIoQtOwVlDV2k0BFQJndmj+BqWucJZGxQomyujXlqgWukoEtWAVVb3L9zaetcymcsPNN18OYNjhO5updDnuq4UcKTyJ5ianothw3ApqVwR2GjEoLxSDMczpM7PsV70VYxWD9H1zo2mAJc15Q0Jq71J/uLDp2XIkVYWDSuK1nR/ehx/URs0MHu5cIJsAy02wzGAtpkrRn/HyPSmmBR3iSqZmrz0xfafIQcFVWKIVz/Tdu/taBI0272y9E2rUTwg5hUyCnyNJHYr+eRuPX/giCm7Yhun0NROIlNNdkVyzrqajVctoybNINJz1eKBFPyBcVHtBL8cMp83lWpAdpyvAc9Ehr/AeWzcs+VRxBer++dUV5p2EyyGX+h+C5B+kf0YvDyGhzn3OHRty+AUumiBdQgq+DsplySQLKQEMFq5RhzeVsj7JKodKbAWazadnWjG+fpadPkdFnADn+nJ5raD0cq157nVijHHNOMnBpBNciStqYeDdbaPeCeT8d5Ikj1mPPHvvSqiOJDE69diwspJMrhyg8lbBsGJUP9s8rKqJTMoaUDVYHmqI9vqBwmRu6a40BBMcPO2pcBE6ePbCyGp7jIKEUhA0PO+yKkVq2MWUONb9F6nfyG7Sa1tnn4xjX0UyaMgyoOcgvNIz4vZA=
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
addons:
coverity_scan:
project:
name: "Obsidian-StudiosInc/jem"
description: "Build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cmake -D CMAKE_BUILD_TYPE=Debug ./"
build_command: "make -j 4"
branch_pattern: master
script:
- true // avoid coverity double build
script:
- cmake -D CMAKE_BUILD_TYPE=Debug -D BUILD_DOC=ON ${OPTS} ./
- ${SONAR} make package jem-test
- sudo dpkg -i --force-all dist/jem-*.x86_64.deb
- shellcheck data/run-java-tool.bash
- shellcheck tests/run-tests.sh
- ./tests/run-tests.sh openjdk-11 /usr/lib/jvm/java-11-openjdk-amd64 samples/dpkg/etc/jem/vms.d/openjdk-11 samples/usr/share/ant-core/package.env
- if [ "${SONAR}" ]; then find . -name '*.gcno' -exec sh -c 'gcov -b {} -o $(dirname {})' \;; fi
- if [ "${SONAR}" ]; then sonar-scanner; fi
notifications:
email: false