diff --git a/_ci/build.sh b/_ci/build.sh deleted file mode 100755 index 9b358de..0000000 --- a/_ci/build.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -x - -readonly NAME=netatmo-exporter -readonly PACKAGE=github.com/xperimental/netatmo-exporter -readonly BUILDS=(linux/amd64 linux/arm darwin/amd64 windows/amd64) - -mkdir -p gopath/src/github.com/xperimental/ -ln -s "$PWD/source" "gopath/src/${PACKAGE}" -export GOPATH=$PWD/gopath - -for build in "${BUILDS[@]}"; do - echo "Build: $build" - IFS="/" read -a buildinfo <<< "$build" - GOOS=${buildinfo[0]} GOARCH=${buildinfo[1]} go build -v -ldflags="-s -w" -o "binaries/${NAME}_${buildinfo[0]}_${buildinfo[1]}" "${PACKAGE}" -done diff --git a/_ci/build.yml b/_ci/build.yml deleted file mode 100644 index 10621f3..0000000 --- a/_ci/build.yml +++ /dev/null @@ -1,12 +0,0 @@ -platform: linux -image_resource: - type: docker-image - source: - repository: golang - tag: 1.11.0 -inputs: -- name: source -outputs: -- name: binaries -run: - path: source/_ci/build.sh diff --git a/_ci/pipeline.yml b/_ci/pipeline.yml deleted file mode 100644 index 1834627..0000000 --- a/_ci/pipeline.yml +++ /dev/null @@ -1,38 +0,0 @@ -resource_types: - - name: github-status - type: docker-image - source: - repository: dpb587/github-status-resource - tag: master -resources: -- name: netatmo-exporter - type: git - source: - uri: git://github.com/xperimental/netatmo-exporter.git - branch: master -- name: status - type: github-status - source: - repository: xperimental/netatmo-exporter - access_token: ((repo_github_token)) -jobs: -- name: build - plan: - - get: source - resource: netatmo-exporter - trigger: true - - put: status - params: - state: pending - commit: source - - task: build - file: source/_ci/build.yml - on_failure: - put: status - params: - state: failure - commit: source - - put: status - params: - state: success - commit: source \ No newline at end of file