File: .gitlab-ci.yml

package info (click to toggle)
tinyarray 1.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 284 kB
  • sloc: cpp: 2,813; python: 663; makefile: 12
file content (31 lines) | stat: -rw-r--r-- 868 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
image: kwant/tinyarray-testing

stages:
  - test
  - deploy

python2:
    script:
        - python2 setup.py build_ext -i
        - python2 test_tinyarray.py

python3:
    script:
        - python3 setup.py build_ext -i
        - python3 test_tinyarray.py

create conda dev package:
  image: condaforge/linux-anvil
  stage: deploy
  only:
    - master@kwant/tinyarray
  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