Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 7164f87

Browse files
committed
Add TRAVIS CI for OSX DMG BUILDS
- Build DMG files using Travis
1 parent 368764f commit 7164f87

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
os: osx
2+
osx_image: xcode8.3
3+
sudo: required
4+
5+
language: cpp
6+
7+
compiler:
8+
- gcc
9+
10+
before_install:
11+
- brew update
12+
- brew install jq
13+
- brew install cartr/qt4/qt@4
14+
- brew install asciidoctor
15+
16+
before_script:
17+
- git clone --depth 1 https://github.com/openscap/openscap.git -b master
18+
- pushd openscap/build
19+
- cmake -DENABLE_PROBES=FALSE ../
20+
- make -j 4
21+
- make install
22+
- popd
23+
24+
script:
25+
- ./build-for-osx.sh
26+
- wget `curl -s https://api.github.com/repos/openscap/scap-security-guide/releases/latest?access_token=$GITHUB_TOKEN | jq -r ".assets[] | select(.name | test(\"(scap-security-guide-[0-9].[0-9].[0-9]*).zip\")) | .browser_download_url"` -O ssg.zip
27+
- mkdir -p `pwd`/scap-workbench.app/Contents/Resources/ssg/ && unzip ssg.zip -d `pwd`/scap-workbench.app/Contents/Resources/ssg/
28+
- cd build-osx && sh osx-create-dmg.sh
29+
30+
deploy:
31+
provider: releases
32+
api_key: $GITHUB_TOKEN
33+
file: scap-workbench-$TRAVIS_TAG.dmg
34+
skip_cleanup: true
35+
on:
36+
tags: true

0 commit comments

Comments
 (0)