File: config.yml

package info (click to toggle)
libgpuarray 0.7.6-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,176 kB
  • sloc: ansic: 19,235; python: 4,591; makefile: 208; javascript: 71; sh: 15
file content (43 lines) | stat: -rw-r--r-- 1,312 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
40
41
42
43
version: 2

jobs:
  build_pkgs:
    docker:
      - image: joaander/conda-build:20170905

    steps:
      - checkout
      - run:
          name: "Checkout Merge Commit"
          command: |
            if [[ -n "${CIRCLE_PR_NUMBER}" ]]
            then
                git fetch -u origin "+refs/pull/${CIRCLE_PR_NUMBER}/merge:pr/${CIRCLE_PR_NUMBER}/merge"
                git checkout -qf "pr/${CIRCLE_PR_NUMBER}/merge"
            fi
      - run:
          name: "Build Recipe"
          command: |
            export GPUARRAY_VERSION=`python -c 'import versioneer; print(versioneer.get_version())'`
            conda build --python 2.7 conda
            conda build --python 3.5 conda/pygpu
            conda build --python 3.6 conda/pygpu
      - run:
          name: "Upload Tagged Versions"
          command: |
            if [[ -n "${CIRCLE_TAG}" ]]
            then
                anaconda -t $BINSTAR_TOKEN upload --user=mila-udem /opt/conda/conda-bld/linux-64/libgpuarray*
                anaconda -t $BINSTAR_TOKEN upload --user=mila-udem /opt/conda/conda-bld/linux-64/pygpu*
            fi
      - store_artifacts:
          path: /opt/conda/conda-bld/linux-64

workflows:
  version: 2
  build_and_test:
    jobs:
      - build_pkgs:
          filters:
            tags:
              only: /.*/