Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split tests into four groups for CI job matrices #872

Merged
merged 20 commits into from
Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
environment:
julia_version: 1.5
matrix:
- julia_version: 1.4
- julia_version: nightly
- test_group: unit
- test_group: integration
- test_group: regression
- test_group: scripts

platform:
- x64 # 64-bit

# Uncomment the following lines to allow failures on nightly julia
# (tests will run but not make your overall status red)
matrix:
allow_failures:
- julia_version: nightly
- x64

branches:
only:
Expand Down
15 changes: 0 additions & 15 deletions .codecov.yml

This file was deleted.

36 changes: 23 additions & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,41 @@ include:

image: ubuntu:bionic

variables:
CI_IMAGE_TAG: 'cuda'
JULIA_NUM_THREADS: '1'

# Julia versions

# the "primary" target, where we require a new GPU to make sure all tests are run
julia:1.4:
julia:1.4:unit:
extends:
- .julia:1.4
- .test
variables:
TEST_GROUP: 'unit'
tags:
- nvidia
- sm_70

julia:1.4:integration:
extends:
- .julia:1.4
- .test
variables:
CI_THOROUGH: 'true'
TEST_GROUP: 'integration'
tags:
- nvidia

julia:nightly:
julia:1.4:regression:
extends:
- .julia:nightly
- .julia:1.4
- .test
variables:
TEST_GROUP: 'regression'
tags:
- nvidia
allow_failure: true

julia:1.4:scripts:
extends:
- .julia:1.4
- .test
variables:
TEST_GROUP: 'scripts'
tags:
- nvidia

coverage:
extends:
Expand Down
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@ julia:
- 1.4

env:
global:
- PYTHON=''
jobs:
- TEST_GROUP=unit
- TEST_GROUP=integration
- TEST_GROUP=regression
- TEST_GROUP=scripts

# Only build pushes to master (PRs still build merge commits)
# See: https://stackoverflow.com/a/31882307
branches:
only:
- master

notifications:
email: true

after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())';

jobs:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM julia:1.3
FROM julia:1.4
LABEL maintainer="Ali Ramadhan <[email protected]>"

RUN apt-get update && apt-get install -y hdf5-tools
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
<a href="https://codecov.io/gh/clima/Oceananigans.jl">
<img alt="Codecov coverage" src="https://img.shields.io/codecov/c/github/clima/Oceananigans.jl/master?label=Codecov&logo=codecov&logoColor=white&style=flat-square">
</a>
<a href="https://coveralls.io/github/clima/Oceananigans.jl?branch=master">
<img alt="Coveralls coverage" src="https://img.shields.io/coveralls/github/clima/Oceananigans.jl/master?label=Coveralls&style=flat-square">
</a>
</p>

Oceananigans.jl is a fast and friendly incompressible fluid flow solver written in Julia that can be run in 1-3 dimensions on CPUs and GPUs. It is designed to solve the rotating Boussinesq equations used in non-hydrostatic ocean modeling but can be used to solve for any incompressible flow.
Expand Down
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
coverage:
range: 50..90
round: down
precision: 2

status:
project:
default:
target: auto
threshold: 5%
patch:
default:
target: auto
threshold: 20%
61 changes: 37 additions & 24 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,31 +72,44 @@ closures = (
##### Run tests!
#####

group = get(ENV, "TEST_GROUP", "all")

include("runtests_utils.jl")

@testset "Oceananigans" begin
include("test_grids.jl")
include("test_operators.jl")
include("test_boundary_conditions.jl")
include("test_fields.jl")
include("test_halo_regions.jl")
include("test_solvers.jl")
include("test_pressure_solvers.jl")
include("test_coriolis.jl")
include("test_buoyancy.jl")
include("test_surface_waves.jl")
include("test_models.jl")
include("test_simulations.jl")
include("test_time_stepping.jl")
include("test_time_stepping_bcs.jl")
include("test_forcings.jl")
include("test_turbulence_closures.jl")
include("test_dynamics.jl")
include("test_diagnostics.jl")
include("test_output_writers.jl")
include("test_abstract_operations.jl")
include("test_regression.jl")
include("test_examples.jl")
include("test_verification.jl")
include("test_benchmarks.jl")
if group == "unit" || group == "all"
@testset "Unit tests" begin
include("test_grids.jl")
include("test_operators.jl")
include("test_boundary_conditions.jl")
include("test_fields.jl")
include("test_halo_regions.jl")
include("test_solvers.jl")
include("test_pressure_solvers.jl")
include("test_coriolis.jl")
include("test_buoyancy.jl")
include("test_surface_waves.jl")
end
elseif group == "integration" || group == "all"
@testset "Integration tests" begin
include("test_models.jl")
include("test_simulations.jl")
include("test_time_stepping.jl")
include("test_time_stepping_bcs.jl")
include("test_forcings.jl")
include("test_turbulence_closures.jl")
include("test_dynamics.jl")
include("test_diagnostics.jl")
include("test_output_writers.jl")
include("test_abstract_operations.jl")
end
elseif group == "regression" || group == "all"
include("test_regression.jl")
elseif group == "scripts" || group == "all"
@testset "Scripts" begin
include("test_examples.jl")
include("test_verification.jl")
include("test_benchmarks.jl")
end
end
end