Skip to content

Commit

Permalink
Remove deploy
Browse files Browse the repository at this point in the history
conda builds are now build and
deployed by github actions
  • Loading branch information
tpeulen committed Feb 4, 2024
1 parent c579245 commit 4d604d5
Showing 1 changed file with 34 additions and 36 deletions.
70 changes: 34 additions & 36 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
stages:
- build
- test
- deploy
# - deploy

.build: &build
stage: build
Expand All @@ -25,7 +25,6 @@ build:lnx_x86:
entrypoint: [ "/bin/bash", "-i", "-c" ]
tags:
- x86_64

# No PPC or ARM64 IMP builds
#build:lnx_ppc64le:
# <<: *build_lnx
Expand All @@ -41,24 +40,23 @@ build:lnx_x86:
# entrypoint: [ "/bin/bash", "-i", "-c" ]
# tags:
# - aarch64

build:osx:
<<: *build_posix
tags:
- osx
before_script:
- git submodule foreach git pull

build:windows:
<<: *build
# image: mambaforge:vs16
tags:
- win
script:
- cmd.exe
- conda activate base
- cd tools && git pull --force && cd..
- .\tools\build.bat
#build:osx:
# <<: *build_posix
# tags:
# - osx
# before_script:
# - git submodule foreach git pull
#
#build:windows:
# <<: *build
## image: mambaforge:vs16
# tags:
# - win
# script:
# - cmd.exe
# - conda activate base
# - cd tools && git pull --force && cd..
# - .\tools\build.bat

test:linux:
stage: test
Expand All @@ -68,24 +66,24 @@ test:linux:
needs: ["build:lnx_x86"]
script:
- source activate base
- apt update && apt install -y mongodb
# - apt update && apt install -y mongodb
- conda config --add channels "file://`pwd`/bld-dir"
- mamba install python imp.bff nose numba numpy pandas
- mkdir db & nohup mongod --dbpath db &
# - mkdir db & nohup mongod --dbpath db &
- cd test
- nosetests

deploy:
stage: deploy
image: condaforge/mambaforge
tags:
- linux
before_script:
- git submodule update --init --recursive --remote
script:
- source activate
- mamba install anaconda-client
- if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then DEPLOY_LABEL=main; else DEPLOY_LABEL=nightly; fi
- anaconda -t ${ANACONDA_API_TOKEN} upload -l ${DEPLOY_LABEL} -u ${CONDA_USER} --force bld-dir/**/*.tar.bz2
- git switch -c ${CI_COMMIT_REF_NAME}
- git push --force https://${GITHUB_TOKEN}@github.com/fluorescence-tools/imp.bff
#deploy:
# stage: deploy
# image: condaforge/mambaforge
# tags:
# - linux
# before_script:
# - git submodule update --init --recursive --remote
# script:
# - source activate
# - mamba install anaconda-client
# - if [[ "$CI_COMMIT_REF_NAME" == "master" ]]; then DEPLOY_LABEL=main; else DEPLOY_LABEL=nightly; fi
# - anaconda -t ${ANACONDA_API_TOKEN} upload -l ${DEPLOY_LABEL} -u ${CONDA_USER} --force bld-dir/**/*.tar.bz2
# - git switch -c ${CI_COMMIT_REF_NAME}
# - git push --force https://${GITHUB_TOKEN}@github.com/fluorescence-tools/imp.bff

0 comments on commit 4d604d5

Please sign in to comment.