From 93b94ade66e1139aafaf45ab3f57ecbfbd21dbed Mon Sep 17 00:00:00 2001 From: "Juan M. Cruz-Martinez" Date: Fri, 8 Mar 2024 08:50:14 +0100 Subject: [PATCH] remove travis ci --- .ciscripts/build-deploy.sh | 38 ------------------------------------- .ciscripts/build-deploy2.sh | 38 ------------------------------------- .github/workflows/conda.yml | 11 +++++++---- 3 files changed, 7 insertions(+), 80 deletions(-) delete mode 100755 .ciscripts/build-deploy.sh delete mode 100755 .ciscripts/build-deploy2.sh diff --git a/.ciscripts/build-deploy.sh b/.ciscripts/build-deploy.sh deleted file mode 100755 index 502daca..0000000 --- a/.ciscripts/build-deploy.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -set -e -set -o pipefail -set -u -set -v - -MINICONDA_PATH="/root/miniconda3" - -conda build -q conda-recipe -if [ $? != 0 ]; then - echo failed to build - exit 1 -fi - -#This seems to be needed for "artifacts" to work. -if [ "$BRANCH" != 'master' ] && [ "$UPLOAD_NON_MASTER" == false ]; -then - echo " -Skiping upload because this is not master and you have not -set the UPLOAD_NON_MASTER variable." - exit 0 -fi - -echo "Uploading package to the NNPDF server" -KEY=$( mktemp ) -#This is defined in the Gitlab variables, under the Settings Menu. -echo "$NNPDF_SSH_KEY" | base64 --decode > "$KEY" - -scp -i "$KEY" -o StrictHostKeyChecking=no\ - "$MINICONDA_PATH"/conda-bld/linux-64/*.tar.bz2 \ - dummy@packages.nnpdf.science:~/packages/conda/linux-64 - -if [ $? == 0 ]; then - echo "Upload suceeded" -else - echo "Upload failed" - exit 1 -fi diff --git a/.ciscripts/build-deploy2.sh b/.ciscripts/build-deploy2.sh deleted file mode 100755 index b48e081..0000000 --- a/.ciscripts/build-deploy2.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -set -e -set -o pipefail -set -u -set -v - -#Find conda -conda build -q $1 -if [ $? != 0 ]; then - echo failed to build - exit 1 -fi - - -if [ "${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}" != 'master' ] && [ "$UPLOAD_NON_MASTER" == false ]; -then - echo " -Skiping upload because this is not master and you have not -set the UPLOAD_NON_MASTER variable." - exit 0 -fi - -echo "Uploading package to the NNPDF server" -#Idiotic mac mktemp -KEY=$( mktemp "${TMPDIR:-/tmp}/key.XXXXXXXXX" ) -#This is defined in the Gitlab variables, under the Settings Menu. -echo "$NNPDF_SSH_KEY" | base64 --decode > "$KEY" - -scp -i "$KEY" -o StrictHostKeyChecking=no\ - ${CONDAPATH}/conda-bld/${OUTPUT_ARCH}/*.tar.bz2 \ - dummy@packages.nnpdf.science:~/packages/${OUTPUT_CHANNEL}/${OUTPUT_ARCH} - -if [ $? == 0 ]; then - echo "Upload suceeded" -else - echo "Upload failed" - exit 1 -fi diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml index d97ea52..75c3b4b 100644 --- a/.github/workflows/conda.yml +++ b/.github/workflows/conda.yml @@ -14,14 +14,17 @@ jobs: key: ${{ secrets.SSH_KEY }} known_hosts: ${{ secrets.KNOWN_HOSTS }} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-tags: true + fetch-depth: 0 - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3 with: + use-mamba: true + activate-environment: test auto-update-conda: true - python-version: "3.9" + python-version: "3.11" - name: Do Build shell: bash -l {0}