From c72fa19b6486bf248f562b84036a66f548035189 Mon Sep 17 00:00:00 2001 From: rlyu <rlyu@svi.edu.au> Date: Tue, 14 Dec 2021 11:18:33 +1100 Subject: [PATCH] adding gitlab ci and nimble file --- .gitlab-ci.yml | 69 +++++++++++++++++++++++++++++++++++++++++++++++ sgcocaller.nimble | 18 +++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 sgcocaller.nimble diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f0153e2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,69 @@ + +stages: + - buildStatic + - testStatic +variables: + +before_script: + + +#alpine +# +buildStatic: + tags: + - docker + image: svirlyu/sscocaller_nsb + stage: buildStatic + script: + - /usr/local/bin/nsb -s ./src/sgcocaller.nim -n sgcocaller.nimble -o . -- --d:release --threads:on + - ls -l ./src + artifacts: + paths: + - ./src/sgcocaller + +testUbuntu: + tags: + - docker + image: ubuntu + stage: testStatic + script: + - ./src/sgcocaller -h + +testDebian: + tags: + - docker + image: debian + stage: testStatic + script: + - ./src/sgcocaller -h + +testRedHat: + stage: testStatic + script: + - ./src/sgcocaller -h + + +## shell executer +##testFunction: +## stage: testStatic +## script: +## - sh tests/test.sh + +testAlpine: + tags: + - docker + image: alpine + stage: testStatic + script: + - ./src/sgcocaller -h + + + + +#release: +#i tag_name: $CI_COMMIT_TAG +# script: +# - echo "create static build" +# image: registry.gitlab.com/gitlab-org/release-cli:latest + + diff --git a/sgcocaller.nimble b/sgcocaller.nimble new file mode 100644 index 0000000..4ba0551 --- /dev/null +++ b/sgcocaller.nimble @@ -0,0 +1,18 @@ +# Package + +version = "0.3.3" +author = "Ruqian Lyu" +description = "sgcocaller: calling crossovers from single-gamete DNA sequencing datasets" +license = "MIT" +srcDir = "src" +bin = @["sgcocaller"] + + +# Dependencies + +requires "nim >= 1.0.0","docopt","hts >= 0.3.4" +requires "https://github.com/ruqianl/distributions.git" + +# task test, "run the tests": +# exec "nim c -d:useSysAssert -d:useGcAssert --lineDir:on --debuginfo -r tests/test_groups" +# exec "bash tests/functional-tests.sh" -- GitLab