summaryrefslogtreecommitdiffstats
path: root/src/arrow/dev/tasks/conda-recipes/azure.clean.yml
blob: 84f167812b2f1b7ba8ff1eb17ab14201af383ab1 (plain)
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
jobs:
- job: linux
  pool:
    vmImage: ubuntu-latest
  timeoutInMinutes: 360

  steps:
  - script: |
      git clone --no-checkout {{ arrow.remote }} arrow
      git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}
      git -C arrow checkout FETCH_HEAD
      git -C arrow submodule update --init --recursive
    displayName: Clone arrow

  - script: |
      conda install -y -c conda-forge pandas anaconda-client packaging
    displayName: Install requirements

  - script: |
      {% if arrow.branch == 'master' %}
      mkdir -p $HOME/.continuum/anaconda-client/tokens/
      echo $(CROSSBOW_ANACONDA_TOKEN) > $HOME/.continuum/anaconda-client/tokens/https%3A%2F%2Fapi.anaconda.org.token
      {% endif %}
      eval "$(conda shell.bash hook)"
      conda activate base
      python3 arrow/dev/tasks/conda-recipes/clean.py {% if arrow.branch == 'master' %}FORCE{% endif %}
    displayName: Delete outdated packages