github.com/braveheart12/just@v0.8.7/ci/pipeline.yml (about)

     1  groups:
     2  - name: master
     3    jobs:
     4      - unit-all
     5  - name: network
     6    jobs:
     7      - unit-network
     8  
     9  resource_types:
    10  - name: git-multibranch
    11    type: docker-image
    12    source:
    13      repository: cfcommunity/git-multibranch-resource
    14  
    15  resources:
    16  - name: insolar
    17    type: git
    18    source:
    19      uri: https://github.com/insolar/insolar.git
    20      branch: master
    21  - name: multibranch
    22    type: git-multibranch
    23    source:
    24      uri: https://github.com/insolar/insolar.git
    25      branches: '.*'
    26      paths: 
    27       - 'network/host'
    28  
    29  
    30  jobs:
    31  - name: unit-all
    32    public: true
    33    plan:
    34    - get: insolar
    35      trigger: false
    36    - task: unit
    37      config:
    38        platform: linux
    39        image_resource:
    40          type: docker-image
    41          source: {repository: golang}
    42        inputs:
    43        - name: insolar
    44          path: gopath/src/github.com/insolar/insolar
    45        caches:
    46        - path: depspath/
    47        - path: gopath/pkg/
    48        run:
    49          path: sh
    50          args:
    51            - -exc
    52            - |
    53               echo tests
    54               pwd
    55               ls -alh
    56               cd gopath/src/github.com/insolar/insolar
    57               echo "fetching dependencies..."
    58               go get -t -d ./...
    59               go test -v --race --coverprofile=coverage.txt --covermode=atomic ./...
    60  
    61  - name: unit-network
    62    public: false
    63    plan:
    64    - get: multibranch
    65      trigger: true
    66    - task: unit-net
    67      config:
    68        platform: linux
    69        image_resource:
    70          type: docker-image
    71          source: {repository: golang}
    72        inputs:
    73        - name: multibranch
    74          path: gopath/src/github.com/insolar/insolar
    75        caches:
    76        - path: depspath/
    77        - path: gopath/pkg/
    78        run:
    79          path: sh
    80          args:
    81            - -exc
    82            - |
    83               echo tests
    84               pwd
    85               ls -alh
    86               cd gopath/src/github.com/insolar/insolar
    87               echo "fetching dependencies..."
    88               go get -t -d ./...
    89               cd network/host
    90               go test -v --race --coverprofile=coverage.txt --covermode=atomic ./...
    91  
    92