diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 0e9bff9..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,77 +0,0 @@ -# To contribute improvements to CI/CD templates, please follow the Development guide at: -# https://docs.gitlab.com/ee/development/cicd/templates.html -# This specific template is located at: -# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml - -# Official language image. Look for the different tagged releases at: -# https://hub.docker.com/r/library/python/tags/ -image: python:3.10.4-bullseye - -# Change pip's cache directory to be inside the project directory since we can -# only cache local items. -variables: - PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" - -# Pip's cache doesn't store the python packages -# https://pip.pypa.io/en/stable/topics/caching/ -# -# If you want to also cache the installed packages, you have to install -# them in a virtualenv and cache it as well. - -stages: - - lint - - build -# - test - - deploy - - -before_script: - - python --version # For debugging - - pip install virtualenv - - virtualenv venv - - source venv/bin/activate - - pip list # For debugging - - -build: - stage: build - script: - # Build lapjv enforcing AVX2 - - pip install numpy - - "git clone https://github.com/src-d/lapjv" - - "sed -ie 's/march=native/mavx2/g' lapjv/setup.py" - - "cd lapjv && python setup.py install && cd .." - - # Install extra dependencies - - git config --global http."https://gitlab.qb/".sslCAInfo $GLOBAL_QB_CA - - "git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.qb/rmori/python-binexport.git" - - "cd python-binexport && pip install . && cd .." - - # Build QBinDiff - - pip install . - - -lint: - stage: lint - script: - - pip install black - - black --check src/ - - black --check bin/qbindiff - -pages: - stage: deploy - script: - - pip install .[doc] - - (cd doc && pip install -r requirements.txt) - - (cd doc && make html) - - cp -r doc/build/html public - artifacts: - name: "pages" - paths: - - public # instruct GitLab to keep the public folder - - -#test: -# stage: test -# script: -# - python tests/test.py -v