Skip to content

Commit

Permalink
Merge pull request #37 from FourierFlows/TestUseJulia1.3
Browse files Browse the repository at this point in the history
Travis-CI tests use julia v1.3
  • Loading branch information
navidcy authored Jan 9, 2020
2 parents f7cb2ea + fb3f6e1 commit fe11fec
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 416 deletions.
62 changes: 39 additions & 23 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,51 @@
variables:
CI_IMAGE_TAG: 'cuda'
JULIA_NUM_THREADS: '4'
JULIA_CUDA_VERBOSE: 'true'

# See: https://github.com/JuliaGPU/gitlab-ci
include:
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v5/test.yml'
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v5/coverage.yml'
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v6.yml'

test:v1.2:
extends: .test:v1.2
image: nvidia/cuda:10.1-cudnn7-devel

test:v1.3:
extends: .test:v1.3
allow_failure: true
julia:1.0:
extends:
- .julia:1.0
- .test
tags:
- nvidia

test:dev:
extends: .test:dev
allow_failure: true
julia:1.1:
extends:
- .julia:1.1
- .test
tags:
- nvidia

coverage:
stage: post
extends: .root
# the "primary" target, where we require a new GPU to make sure all tests are run
julia:1.2:
image: juliagpu/cuda:10.1-cudnn7-cutensor1-devel-ubuntu18.04
extends:
- .julia:1.2
- .test
tags:
- nvidia
- sm_75
variables:
CI_VERSION_TAG: 'v1.2'
script:
- julia --project -e 'using Pkg;
Pkg.add("Coverage")'
- julia --project -e 'using Coverage;
cl, tl = get_summary(process_folder());
println("(", cl/tl*100, "%) covered");
Codecov.submit_local(Codecov.process_folder(), ".")'
coverage: '/\(\d+.\d+\%\) covered/'
CI_THOROUGH: 'true'

julia:1.3:
extends:
- .julia:1.3
- .test
tags:
- nvidia
allow_failure: true



# other tasks
coverage:
extends:
- .julia:1.2
- .coverage
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ os:
- linux

julia:
- 1.2
- 1.3
- nightly

matrix:
Expand All @@ -19,7 +19,7 @@ after_success:
jobs:
include:
- stage: "Documentation"
julia: 1.2
julia: 1.3
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate();
Expand Down
Loading

0 comments on commit fe11fec

Please sign in to comment.