-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
438 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
*.jl.cov | ||
*.jl.mem | ||
deps/x86* | ||
deps/x86* | ||
*.dll | ||
deps/deps.jl | ||
deps/DevIL.lib | ||
deps/ILU.lib | ||
deps/ILUT.lib | ||
deps/downloads/ | ||
deps/include/ | ||
deps/unicode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
language: julia | ||
sudo: required | ||
os: | ||
- linux | ||
- osx | ||
julia: | ||
- release | ||
- nightly | ||
- 0.5 | ||
notifications: | ||
email: false | ||
# uncomment the following lines to override the default test script | ||
#script: | ||
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi | ||
# - julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("DevIL"); Pkg.test("DevIL"; coverage=true)' | ||
after_success: | ||
# push coverage results to Coveralls | ||
- julia -e 'cd(Pkg.dir("DevIL")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' | ||
# push coverage results to Codecov | ||
- julia -e 'cd(Pkg.dir("DevIL")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
julia 0.5- | ||
|
||
julia 0.5 | ||
FixedPointNumbers | ||
ColorTypes | ||
ImageCore | ||
BinDeps | ||
@osx Homebrew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
environment: | ||
matrix: | ||
- JULIAVERSION: "julialang/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe" | ||
|
||
branches: | ||
only: | ||
- master | ||
- /release-.*/ | ||
|
||
notifications: | ||
- provider: Email | ||
on_build_success: false | ||
on_build_failure: false | ||
on_build_status_changed: false | ||
|
||
install: | ||
# Download most recent Julia Windows binary | ||
- ps: (new-object net.webclient).DownloadFile( | ||
$("http://s3.amazonaws.com/"+$env:JULIAVERSION), | ||
"C:\projects\julia-binary.exe") | ||
# Run installer silently, output to C:\projects\julia | ||
- C:\projects\julia-binary.exe /S /D=C:\projects\julia | ||
|
||
build_script: | ||
# Need to convert from shallow to complete for Pkg.clone to work | ||
- IF EXIST .git\shallow (git fetch --unshallow) | ||
- C:\projects\julia\bin\julia -e "versioninfo(); | ||
Pkg.clone(pwd(), \"DevIL\"); Pkg.build(\"DevIL\")" | ||
|
||
test_script: | ||
- C:\projects\julia\bin\julia -e "Pkg.test(\"DevIL\")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
using BinDeps | ||
@BinDeps.setup | ||
libnames = ["devil", "libdevil1c2", "libdevil-dev", "DevIL", "libIL", "libIL.so.1"] | ||
libdevil = library_dependency("libdevil", aliases = libnames) | ||
|
||
# get library through Homebrew, if available | ||
@static if is_apple() | ||
if Pkg.installed("Homebrew") == nothing | ||
error("Homebrew package not installed, please run Pkg.add(\"Homebrew\")") | ||
end | ||
using Homebrew | ||
provides(Homebrew.HB, "devil", libdevil, os = :Darwin) | ||
end | ||
|
||
# download a pre-compiled binary (built by GLFW) | ||
@static if is_windows() | ||
ts = Int(floor(time())) | ||
if Sys.ARCH == :x86_64 | ||
# 64-bit version is not available in an end-user package, so we download the SDK | ||
srcUrl = "http://downloads.sourceforge.net/project/openil/DevIL%20Windows%20SDK/1.7.8/DevIL-SDK-x64-1.7.8.zip?r=&ts=$ts&use_mirror=auto_select" | ||
fileName = "DevIL-SDK-x64-1.7.8.zip" | ||
elseif Sys.ARCH == :x86 | ||
srcUrl = "http://downloads.sourceforge.net/project/openil/DevIL%20Win32/1.7.8/DevIL-EndUser-x86-1.7.8.zip?r=&ts=$ts&use_mirror=auto_select" | ||
fileName = "DevIL-EndUser-x86-1.7.8.zip" | ||
else | ||
error("DevIL: Unsupported Windows architecture") | ||
end | ||
|
||
dstDir = Pkg.dir("DevIL", "deps", string(Sys.ARCH)) | ||
if (!isdir(dstDir)) | ||
mkdir(dstDir) | ||
end | ||
dstFile = dstDir * "\\" * fileName | ||
download(srcUrl, dstFile) | ||
run(`"$JULIA_HOME\\7z.exe" e "$dstFile" *.dll -o"$dstDir" -y`) | ||
rm(dstFile) | ||
ts = floor(Int, time()) | ||
url = if Sys.ARCH == :x86_64 | ||
# 64-bit version is not available in an end-user package, so we download the SDK | ||
"http://downloads.sourceforge.net/project/openil/DevIL%20Windows%20SDK/1.7.8/DevIL-SDK-x64-1.7.8.zip?r=&ts=$ts&use_mirror=auto_select" | ||
elseif Sys.ARCH == :x86 | ||
"http://downloads.sourceforge.net/project/openil/DevIL%20Win32/1.7.8/DevIL-EndUser-x86-1.7.8.zip?r=&ts=$ts&use_mirror=auto_select" | ||
else | ||
error("DevIL: Unsupported Windows architecture: $(Sys.ARCH)") | ||
end | ||
archive = "unicode" | ||
libpath = "" | ||
uri = URI(url) | ||
provides(Binaries, uri, libdevil, unpacked_dir = archive, installed_libpath = libpath, os = :Windows) | ||
end | ||
|
||
@static if is_linux() | ||
run(`sudo apt-get install libdevil1c2`) | ||
provides(AptGet, "libdevil-dev", libdevil) | ||
provides(Pacman, "libdevil-dev", libdevil) | ||
provides(Yum, "DevIL", libdevil) | ||
end | ||
|
||
function main() | ||
@BinDeps.install Dict("libdevil" => "libdevil") | ||
end | ||
main() # move in function to get better stack traces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.