github.com/bilus/oya@v0.0.3-0.20190301162104-da4acbd394c6/Oyafile (about)

     1  Project: project
     2  Require:
     3    github.com/tooploox/oya-fixtures: v1.1.0
     4  
     5  Values:
     6    pgpkey: 317D 6971 DD80 4501 A6B8  65B9 0F1F D46E 2E8C 7202
     7  
     8  Ignore:
     9  - pkg/*
    10  
    11  develop.Doc: Install development prerequisites.
    12  develop: |
    13    go get -u github.com/DATA-DOG/godog/cmd/godog
    14    go get -u go.mozilla.org/sops/cmd/sops
    15  
    16  install.Doc: Install oya.
    17  install: |
    18    go install .
    19  
    20  test.Doc: Run tests.
    21  test: |
    22    go test -v ./... && \
    23    godog $Join(" ", Args)
    24  
    25  testKeysImport.Doc: Imports test PGP keys required by sops.
    26  testKeysImport: |
    27    if ! [[ -n $$(gpg --fingerprint | grep '$pgpkey') ]]
    28    then
    29      gpg --import testutil/pgp/private.rsa
    30  
    31      echo "Oya test PGP Key imported"
    32    fi
    33  
    34  testKeysRemove.Doc: Removes test PGP keys.
    35  testKeysRemove: |
    36    if [[ -n $$(gpg --fingerprint | grep '$pgpkey') ]]
    37    then
    38      gpg --batch --delete-secret-keys '$pgpkey'
    39      gpg --batch --delete-keys '$pgpkey'
    40  
    41      echo "Oya test PGP Key deleted"
    42    fi
    43  
    44  release: |
    45    go get -u github.com/mitchellh/gox
    46    go get -u github.com/tcnksm/ghr
    47    gox -os="linux darwin" -arch="amd64 386" -output="dist/oya_$${CIRCLE_TAG}_{{.OS}}_{{.Arch}}"
    48    gzip dist/*
    49    sha256sum dist/oya_$${CIRCLE_TAG}_{darwin,linux}_* | tee dist/oya_$${CIRCLE_TAG}_SHA256SUMS
    50    if [ "$$CIRCLE_TAG" ]; then
    51      ghr -t $$GITHUB_TOKEN -u $$CIRCLE_PROJECT_USERNAME -r $$CIRCLE_PROJECT_REPONAME --replace $$CIRCLE_TAG dist/
    52    else
    53      echo "The build is missing Git / CircleCi Tag"
    54    fi