forked from pwsafe/pwsafe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·62 lines (50 loc) · 1.63 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
os:
# - osx
- linux
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
addons:
apt:
packages:
- libwxgtk3.0-dev
- libuuid1
- libxerces-c-dev
- libxt-dev
- libxtst-dev
- libykpers-1-dev
- libyubikey-dev
- uuid-dev
- pkg-config
- libgtest-dev
- libqrencode-dev
- libmagic-dev
language: cpp
dist: xenial
env:
- BUILD_DIR=dist UPLOAD_DIR=linux
- BUILD_DIR=Xcode/installers UPLOAD_DIR=osx
matrix:
exclude:
- os: linux
env: BUILD_DIR=Xcode/installers UPLOAD_DIR=osx
- os: osx
env: BUILD_DIR=dist UPLOAD_DIR=linux
include:
- os: linux
compiler: gcc
- os: linux
compiler: clang
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
install:
# This just downloads pre-biuilt binaries which are all dylibs
# TBD: try this forumuale
# https://github.com/Homebrew/homebrew-core/blob/master/Formula/wxmac.rb
# This would take the --with-static args to build static libs
# We'd have to cache that build using ccache
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install wxmac; fi
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then Xcode/generate-configs-from-homebrew; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcodebuild -project Xcode/pwsafe-xcode6.xcodeproj -scheme pwsafe; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir build && cd build && cmake .. && make && make test && cpack -G DEB ..; fi