Skip to content

Commit 4aa4939

Browse files
committed
Add OSX Build on Travis
1 parent 880cc48 commit 4aa4939

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.travis-scripts/install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
4+
5+
# Install some custom requirements on OS X
6+
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u66-b17/jdk-8u66-macosx-x64.dmg
7+
hdiutil mount jdk-8u66-macosx-x64.dmg
8+
sudo installer -pkg /Volumes/JDK\ 8\ Update\ 66/JDK\ 8\ Update\ 66.pkg -target LocalSystem
9+
fi

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ language: java
33
jdk:
44
- oraclejdk8
55

6+
os:
7+
- linux
8+
- osx
9+
610
# GCC needs to be 4.8 or higher so that GOMP_4.0 is installed for opencv
711
# This is incredibly hard to track down, find the solution for and fix.
812
# https://github.com/bytedeco/javacpp-presets/issues/84
@@ -17,6 +21,7 @@ addons:
1721
- oracle-java8-installer
1822

1923
before_install:
24+
- .travis-scripts/install.sh
2025
- export DISPLAY=:99.0
2126
- sh -e /etc/init.d/xvfb start
2227
- pip install --user codecov
@@ -47,9 +52,6 @@ env:
4752
global:
4853
secure: f90qqcA5inkHmYUK6WNITkSPbalpw+r+6nzykPdN30ahB8OUupYxoJxFknxw74raPQ69IgsDF+f8RihEBNIjH8TiMihkcwbkUGGfYaON+sVdvV/GgRQcUk0tm/wrWxRiB1qOYfsvU4sdyvFWBtAbeuhBH1JMLlQGaFjHTJOUwCjm3iEW0CKC9btsgcZIvIrHkP2KNHUMD2iBs6BJ4W448ElQTBBnaoInWUm/ecV+nNUX9yT1CpVWABVuioUkSWSm7eMiqYnvm4J9+LUh8+IMYyodO2hjPWlQ18yhmP9kSlGpQT6pRZjCRd394GE8plKxxWwp9CVXyUY/KQiYoNMRQaAiwuNnXrCi2Et1Fp8+MzQjpl+2CWbdtPwqGhKrGICfhPHvswNE2jM7VLAu/8Gn+ubhKuYfiibska5tXDBknrVbOiV1s9h3y3hI2WyyUg+T1ZsirhGVzMSmDk4HZnLUf7uEEMZEMQzLC0yk495TTZ2zihRnAkOXhNd24lHVwns2WSu0BKvawaDlfQinCbddKGNXE0cdkDvO9xk4IsbioRJ3w8DhBdL4HAEw/Gzx5N3xEVXgOAtwoP+zH2b3LIXQvP5pkuyna48R9L7Fc+EXUmejuRUmjQQMbsdLbx6Ci8gnd6Xq7CYvwry6t3R0GKuCwziuZNl44doHYR6MK7CDBWo=
4954

50-
os:
51-
- linux
52-
5355
deploy:
5456
provider: releases
5557
api_key:

0 commit comments

Comments
 (0)