github.com/braveheart12/just@v0.8.7/ci/templates/branches.yml.j2 (about)

     1  groups:
     2  {% for branch in branches %}
     3  - name: {{ branch }}
     4    jobs:
     5      - unit-{{ branch }}
     6  {% endfor %}
     7  
     8  resources:
     9  - name: lock
    10    type: pool
    11    source:
    12      uri: git@github.com:insolar/locks.git
    13      branch: master
    14      pool: builds
    15      private_key: ((meta.github.lock_key))
    16  {% for branch in branches %}
    17  - name: insolar-{{ branch }}
    18    type: git
    19    source:
    20      uri: https://github.com/insolar/insolar.git
    21      branch: {{ branch }}
    22  {% endfor %}
    23  
    24  jobs:
    25  {% for branch in branches %}
    26  - name: unit-{{ branch }}
    27    public: true
    28    plan:
    29    - get: insolar-{{ branch }}
    30      trigger: true
    31    - put: lock
    32      params: {acquire: true}
    33    - task: unit
    34      timeout: 10m
    35      config:
    36        platform: linux
    37        image_resource:
    38          type: docker-image
    39          source:
    40            repository: registry.ins.world/builder
    41            username: ((meta.registry.username))
    42            password: ((meta.registry.password))
    43        inputs:
    44        - name: insolar-{{ branch }}
    45          path: /go/src/github.com/insolar/insolar
    46        run:
    47          path: sh
    48          args:
    49            - -exc
    50            - |
    51               echo tests
    52               pwd
    53               ls -alh go
    54               export CGO_ENABLED=0
    55               export GORACE="halt_on_error=1"
    56               export GOMAXPROCS=2
    57               export INSOLAR_LOG_LEVEL=debug
    58               export GOPATH=$(pwd)/go
    59  
    60               mkdir $GOPATH/bin
    61               export PATH=$PATH:$GOPATH/bin
    62               ls -alh
    63               env
    64               cd $GOPATH/src/github.com/insolar/insolar
    65               #make install-deps
    66               make pre-build
    67               rm -Rf $GOPATH/src/github.com/insolar/insolar/vendor/* && mv /go/vendor $GOPATH/src/github.com/insolar/insolar/
    68               make build
    69               make test_with_coverage
    70      ensure:
    71        put: lock
    72        params: {release: lock}
    73  {% endfor %}