.gitlab-ci.yml 868 Bytes
Newer Older
1 2 3 4 5 6
image: kwant/tinyarray-testing

stages:
  - test
  - deploy

Joseph Weston's avatar
Joseph Weston committed
7 8 9 10
python2:
    script:
        - python2 setup.py build_ext -i
        - python2 test_tinyarray.py
11

Joseph Weston's avatar
Joseph Weston committed
12 13 14 15
python3:
    script:
        - python3 setup.py build_ext -i
        - python3 test_tinyarray.py
16

17 18 19 20
create conda dev package:
  image: condaforge/linux-anvil
  stage: deploy
  only:
21
    - master@kwant/tinyarray
22 23 24 25 26 27 28 29 30 31
  script:
    - git clone https://gitlab.kwant-project.org/kwant/conda-recipes.git
    - conda build -c conda-forge --python 3.4 conda-recipes/tinyarray-dev
    - conda build -c conda-forge --python 3.5 conda-recipes/tinyarray-dev
    - conda build -c conda-forge --python 3.6 conda-recipes/tinyarray-dev
    - mv /opt/conda/conda-bld/linux-64/tinyarray-dev*.tar.bz2 .
    - anaconda --token=$ANACONDA_TOKEN upload --force tinyarray-dev*tar.bz2
  artifacts:
    paths:
      - tinyarray-dev*.tar.bz2