Skip to content

Commit

Permalink
Merge pull request #21 from JuliaGPU/gitlab
Browse files Browse the repository at this point in the history
Gitlab
  • Loading branch information
ranocha committed Sep 3, 2018
2 parents 93611e1 + 7ce8f06 commit 1300c19
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 9 deletions.
35 changes: 35 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
variables:
CI_IMAGE_TAG: 'opencl'
package: 'CLBlast'

stages:
- test
#- postprocess

before_script:
- apt-get update && apt-get install -y cmake clang

include:
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v0/common.yml'
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v0/test_v0.7.yml'
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v0/test_v1.0.yml'
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v0/test_dev.yml'
#- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v0/postprocess_coverage.yml'
#- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v0/postprocess_documentation.yml'

test:v0.6:
stage: test
image: "juliagpu/julia:v0.6-${CI_IMAGE_TAG}"
script:
- julia -e 'versioninfo()'
- julia -e "Pkg.init();
symlink(\"$CI_PROJECT_DIR\", Pkg.dir(\"$package\"));
Pkg.resolve();
Pkg.build(\"$package\");
Pkg.test(\"$package\")"

test:v1.0:
allow_failure: true

test:dev:
allow_failure: true
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ julia:
- 0.6
- 0.7
- 1.0
- release
- nightly

os:
Expand All @@ -23,6 +24,7 @@ matrix:
allow_failures:
- julia: 0.7
- julia: 1.0
- julia: release
- julia: nightly

# uncomment and modify the following lines to manually install system packages
Expand All @@ -44,8 +46,8 @@ before_script: # pocl
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi

# uncomment the following lines to override the default test script
script:
- julia --check-bounds=yes --color=yes -e 'if VERSION >= v"0.7.0-" using Pkg; end; Pkg.clone(pwd()); Pkg.build("CLBlast"); Pkg.test("CLBlast", coverage=true)'
#script:
# - julia --check-bounds=yes --color=yes -e 'if VERSION >= v"0.7.0-" using Pkg; end; Pkg.clone(pwd(), "CLBlast"); Pkg.build("CLBlast"); Pkg.test("CLBlast", coverage=true)'
after_success:
# push coverage results to Coveralls
- julia -e 'if VERSION >= v"0.7.0-" using Pkg; end; cd(Pkg.dir("CLBlast")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
Expand Down
17 changes: 17 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name = "CLBlast"
uuid = "a761db2c-effc-550d-a410-5f59553ed40d"

[deps]
BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Homebrew = "d9be37ee-ecc9-5288-90f1-b9ca67657a75"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
OpenCL = "08131aa3-fb12-5dee-8b74-c09406e224a2"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[targets]
test = ["Pkg"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CLBlast

[![Build Status](https://gitlab.com/JuliaGPU/CLArrays.jl/badges/master/pipeline.svg)](https://gitlab.com/JuliaGPU/CLArrays.jl/pipelines)
[![Build Status](https://travis-ci.org/JuliaGPU/CLBlast.jl.svg?branch=master)](https://travis-ci.org/JuliaGPU/CLBlast.jl)
[![Build status](https://ci.appveyor.com/api/projects/status/i1saoodeqrepiodl?svg=true)](https://ci.appveyor.com/project/ranocha/CLBlast-jl)
[![Coverage Status](https://coveralls.io/repos/github/JuliaGPU/CLBlast.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaGPU/CLBlast.jl?branch=master)
Expand Down
8 changes: 2 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ environment:
matrix:
- julia_version: 0.6
- julia_version: 0.7
- julia_version: 1.0
- julia_version: 1
- julia_version: nightly

Expand All @@ -13,15 +14,10 @@ platform:
# (tests will run but not make your overall status red)
matrix:
allow_failures:
- julia_version: 0.7
- julia_version: 1.0
- julia_version: 1
- julia_version: nightly

branches:
only:
- master
- /release-.*/

notifications:
- provider: Email
on_build_success: false
Expand Down
16 changes: 15 additions & 1 deletion deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,21 @@ if Compat.Sys.islinux()
libpath = joinpath(builddir, "libclblast.so")
if !isdir(sourcedir)
url = "https://github.com/CNugteren/CLBlast/archive/" * version * ".tar.gz"
run(pipeline(`wget -q -O - $url`, `tar xzf -`))
download_finished = false
try
run(pipeline(`wget -q -O - $url`, `tar xzf -`))
global download_finished = true
catch e
println(e)
end
if download_finished == false
try
run(pipeline(`curl -L $url`, `tar xzf -`))
global download_finished = true
catch e
println(e)
end
end
end
isdir(builddir) || mkdir(builddir)
cd(builddir)
Expand Down

0 comments on commit 1300c19

Please sign in to comment.