This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from JuliaDiffEq/CI
split to fix CI
- Loading branch information
Showing
3 changed files
with
95 additions
and
23 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 |
---|---|---|
@@ -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();" |
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,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 |