Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #216 from JuliaDiffEq/CI
Browse files Browse the repository at this point in the history
split to fix CI
  • Loading branch information
ChrisRackauckas authored Dec 28, 2019
2 parents c9bac5b + f6bbf09 commit ffb02bb
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 23 deletions.
59 changes: 59 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
stages:
- build
- test

variables:
JULIA_DEPOT_PATH: "$CI_PROJECT_DIR/.julia/"
JULIA_NUM_THREADS: '4'
JULIA_VERSION: 1.3.0

.root:
tags:
- 'p6000'
only:
- master
- tags
- external
- pushes

build:
extends: .root
stage: build
script:
- curl https://julialang-s3.julialang.org/bin/linux/x64/$(echo $JULIA_VERSION | cut -d '.' -f 1,2)/julia-${JULIA_VERSION}-linux-x86_64.tar.gz -o julia.tar.gz
- unp julia.tar.gz
- export PATH="$(pwd)/julia-${JULIA_VERSION}/bin:$PATH"
- mkdir $JULIA_DEPOT_PATH # Pkg.jl#325
- julia -e "using InteractiveUtils;
versioninfo()"
- julia --project -e "using Pkg; Pkg.build(); using DiffEqOperators;"
artifacts:
when: always
paths:
- Manifest.toml
- .julia/
- julia-${JULIA_VERSION}/

.test:
extends: .root
stage: test
dependencies:
- build
before_script:
- export PATH="$(pwd)/julia-${JULIA_VERSION}/bin:$PATH"
- julia -e "using InteractiveUtils;
versioninfo()"

test-multithreading:
extends: .test
variables:
GROUP: "Multithreading"
script:
- julia --project -e "using Pkg; Pkg.test();"

test-GPU:
extends: .test
variables:
GROUP: "GPU"
script:
- julia --project -e "using Pkg; Pkg.add(\"CuArrays\"); Pkg.test();"
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ os:
- linux
# - osx
julia:
- 1.3
- 1
env:
- GROUP=Interface
allow_failures:
- julia: nightly
notifications:
Expand Down
55 changes: 33 additions & 22 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
using SafeTestsets

# Examples
@time @safetestset "Poisson example" begin include("../examples/poisson.jl") end
@time @safetestset "Heat equation example" begin include("../examples/heat_equation.jl") end
const GROUP = get(ENV, "GROUP", "All")
const is_APPVEYOR = Sys.iswindows() && haskey(ENV,"APPVEYOR")
const is_TRAVIS = haskey(ENV,"TRAVIS")

@time @safetestset "Robin Boundary Condition Operators" begin include("robin.jl") end
@time @safetestset "JacVec Operators Interface" begin include("jacvec_operators.jl") end
@time @safetestset "Composite Operators Interface" begin include("composite_operators_interface.jl") end
@time @safetestset "BC and Coefficient Compositions" begin include("bc_coeff_compositions.jl") end
@time @safetestset "Derivative Operators Interface" begin include("derivative_operators_interface.jl") end
@time @safetestset "Validate and Compare Generic Operators" begin include("generic_operator_validation.jl") end
@time @safetestset "Validate Boundary Padded Array Concretization" begin include("boundary_padded_array.jl") end
@time @safetestset "Validate Higher Dimensional Boundary Extension" begin include("MultiDimBC_test.jl") end
#@time @safetestset "2nd order check" begin include("2nd_order_check.jl") end
#@time @safetestset "KdV" begin include("KdV.jl") end # KdV times out and all fails
#@time @safetestset "Heat Equation" begin include("heat_eqn.jl") end
@time @safetestset "Matrix-Free Operators" begin include("matrixfree.jl") end
@time @safetestset "JacVec Operator Integration Test" begin include("jacvec_integration_test.jl") end
@time @safetestset "Convolutions" begin include("convolutions.jl") end
@time @safetestset "Differentiation Dimension" begin include("differentiation_dimension.jl") end
@time @safetestset "2D and 3D fast multiplication" begin include("2D_3D_fast_multiplication.jl") end
@time @safetestset "Higher Dimensional Concretization" begin include("concretization.jl") end
@time @safetestset "Upwind Operator Interface" begin include("upwind_operators_interface.jl") end
@time @safetestset "MOLFiniteDifference Interface" begin include("MOLtest.jl") end
#Start Test Script

@time begin
if GROUP == "All" || GROUP == "Interface"
@time @safetestset "Poisson example" begin include("../examples/poisson.jl") end
@time @safetestset "Heat equation example" begin include("../examples/heat_equation.jl") end
@time @safetestset "Robin Boundary Condition Operators" begin include("robin.jl") end
@time @safetestset "JacVec Operators Interface" begin include("jacvec_operators.jl") end
@time @safetestset "Composite Operators Interface" begin include("composite_operators_interface.jl") end
@time @safetestset "BC and Coefficient Compositions" begin include("bc_coeff_compositions.jl") end
@time @safetestset "Derivative Operators Interface" begin include("derivative_operators_interface.jl") end
@time @safetestset "Validate and Compare Generic Operators" begin include("generic_operator_validation.jl") end
@time @safetestset "Validate Boundary Padded Array Concretization" begin include("boundary_padded_array.jl") end
@time @safetestset "Validate Higher Dimensional Boundary Extension" begin include("MultiDimBC_test.jl") end
#@time @safetestset "2nd order check" begin include("2nd_order_check.jl") end
#@time @safetestset "KdV" begin include("KdV.jl") end # KdV times out and all fails
#@time @safetestset "Heat Equation" begin include("heat_eqn.jl") end
@time @safetestset "Matrix-Free Operators" begin include("matrixfree.jl") end
@time @safetestset "JacVec Operator Integration Test" begin include("jacvec_integration_test.jl") end
@time @safetestset "Convolutions" begin include("convolutions.jl") end
@time @safetestset "Differentiation Dimension" begin include("differentiation_dimension.jl") end
@time @safetestset "Higher Dimensional Concretization" begin include("concretization.jl") end
@time @safetestset "Upwind Operator Interface" begin include("upwind_operators_interface.jl") end
@time @safetestset "MOLFiniteDifference Interface" begin include("MOLtest.jl") end
end

if !is_APPVEYOR && (GROUP == "All" || GROUP == "Multithreading")
@time @safetestset "2D and 3D fast multiplication" begin include("2D_3D_fast_multiplication.jl") end
end
end

0 comments on commit ffb02bb

Please sign in to comment.