diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 000000000..95553bb0f --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,43 @@ +task: + auto_cancellation: false + install_script: | + go get github.com/unarxiv/cvpm/cli + env: + PATH: /snap/bin:$PATH + CIRRUS_WORKING_DIR: /go/src/github.com/$CIRRUS_REPO_FULL_NAME + matrix: + - container: + image: golang:latest + only_if: $CIRRUS_TAG != '' + deploy_script: curl -sL https://git.io/goreleaser | bash + name: Deploy Job + - container: + image: golang:latest + env: + GOBIN: '$(GOPATH)/bin' + GOROOT: '/usr/local/go1.11' + GOPATH: '$(system.defaultWorkingDirectory)/gopath' + modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' + prep_script: | + mkdir -p '$(GOBIN)' + mkdir -p '$(GOPATH)/pkg' + mkdir -p '$(modulePath)' + shopt -s extglob + mv !(gopath) '$(modulePath)' + go version + go get -v -t -d ./... + if [ -f Gopkg.toml ]; then + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh + dep ensure + fi + build_script: go build -v + name: Golang Job + - container: + image: python:latest + install_script: python3 -m pip install --upgrade setuptools wheel + build_package_script: python3 setup.py sdist bdist_wheel + name: Python Job + - windows_container: + image: cirrusci/windowsservercore:2019 + os_version: 2019 + name: Windows Job diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3bee4fc93..000000000 --- a/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -language: go -sudo: required -git: - clone: quiet - -addons: - apt: - packages: - # needed for the nfpm pipe: - - rpm - # needed for the snap pipe: - - snapd - -env: -# needed for the snap pipe: - - PATH=/snap/bin:$PATH - -script: - - go test -race -v ./... - -go: '1.11.2' - -matrix: - allow_failures: - - go: tip - -install: - - sudo snap install snapcraft --classic - - go get github.com/unarxiv/cvpm/cli - -services: - - docker - -deploy: - - provider: script - skip_cleanup: true - script: curl -sL https://git.io/goreleaser | bash - on: - tags: true diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 3e6ad47d3..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: 0.{build} -skip_tags: true -cache: C:\Users\appveyor\AppData\Local\NuGet\Cache -build_script: -- SET GOPATH=c:\workspace -- go test -v -race ./... -test: off -clone_folder: c:\workspace\src\github.com\unarxiv\cvpm\cli -branches: - only: - - master \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 81a65910b..000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,37 +0,0 @@ -# View Azure DevOps documentation for Go projects: -# https://docs.microsoft.com/azure/devops/pipelines/languages/go - -pool: - vmImage: 'Ubuntu 16.04' - -variables: - GOBIN: '$(GOPATH)/bin' # Go binaries path - GOROOT: '/usr/local/go1.11' # Go installation path - GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path - modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code - -steps: -- script: | - mkdir -p '$(GOBIN)' - mkdir -p '$(GOPATH)/pkg' - mkdir -p '$(modulePath)' - shopt -s extglob - mv !(gopath) '$(modulePath)' - echo '##vso[task.prependpath]$(GOBIN)' - echo '##vso[task.prependpath]$(GOROOT)/bin' - displayName: 'Setup Go workspace' - -- script: | - go version - go get -v -t -d ./... - if [ -f Gopkg.toml ]; then - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - dep ensure - fi - workingDirectory: '$(modulePath)' - displayName: 'Download dependencies' - -- script: | - go build -v - workingDirectory: '$(modulePath)/cli' - displayName: 'Build'