Skip to content

Commit

Permalink
a new try with gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Nov 7, 2019
1 parent eb66ce0 commit d6b89b5
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
comment: false
# Ignore Travis CI and Appveyor so accurate GPU coverage is reported by GitLab.
codecov:
ci:
- !appveyor
- !travis

coverage:
status:
project:
default:
target: auto
threshold: 50
base: auto

comment: false
38 changes: 38 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
variables:
CI_IMAGE_TAG: 'cuda'
JULIA_NUM_THREADS: '4'

# 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'

test:v1.1:
extends: .test:v1.1

test:v1.2:
extends: .test:v1.2

test:v1.3:
extends: .test:v1.3
allow_failure: true

test:dev:
extends: .test:dev
allow_failure: true

coverage:
stage: post
extends: .root
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(), ".");
Coveralls.submit_local(Coveralls.process_folder(), ".")'
coverage: '/\(\d+.\d+\%\) covered/'
allow_failure: true

0 comments on commit d6b89b5

Please sign in to comment.