github.com/whamcloud/lemur@v0.0.0-20190827193804-4655df8a52af/buildspec.yml (about)

     1  version: 0.1
     2  
     3  environment_variables:
     4    plaintext:
     5      TOPDIR: "/tmp/rpmbuild"
     6  
     7  phases:
     8    pre_build:
     9      commands:
    10        - echo Pre-build started on `date`
    11        - rm -fr $TOPDIR
    12        - mkdir -p $TOPDIR/{RPMS/{x86_64,noarch},SRPMS,BUILD,BUILDROOT,SPECS,SOURCES}
    13        - mkdir -p $GOPATH/src/github.com/intel-hpdd/lemur && cp -a . $_ && cd $_ && rm -fr vendor/github.com/intel-hpdd/logging/debug/examples && rm -fr uat && go get -v ./... && go get -v github.com/fortytw2/leaktest && go test -v $(go list ./... | egrep -v '(*vendor/*|*uat/*)' )
    14    build:
    15      commands:
    16        - echo Build started on `date`
    17        - make local-rpm TOPDIR=$TOPDIR
    18        - make -C packaging/rpm repo TOPDIR=$TOPDIR
    19        - cd $TOPDIR/RPMS && zip -r /tmp/repo.zip .
    20    post_build:
    21      commands:
    22        - echo Build completed on `date`
    23  artifacts:
    24    files:
    25      - /tmp/repo.zip
    26    discard-paths: yes