github.com/turingchain2020/turingchain@v1.1.21/.travis.yml (about) 1 language: go 2 go_import_path: github.com/turingchain2020/turingchain 3 4 5 os: linux 6 dist: xenial 7 8 notifications: 9 email: false 10 matrix: 11 include: 12 - name: check_fmt 13 sudo: require 14 go: 15 - "1.13.x" 16 - master 17 env: 18 - GO111MODULE=on 19 install: 20 - go get -u golang.org/x/tools/cmd/goimports 21 - go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.18.0 22 - go get -u mvdan.cc/sh/cmd/shfmt 23 - go get -u mvdan.cc/sh/cmd/gosh 24 script: 25 - make checkgofmt && make fmt_go 26 - make linter 27 28 - name: unit-test 29 go: "1.13.x" 30 env: 31 - GO111MODULE=on 32 33 install: skip 34 script: 35 - make test 36 37 - name: coverage 38 if: branch = master 39 go: 40 - "1.13.x" 41 env: 42 - GO111MODULE=on 43 before_install: 44 - go get -t -v ./... 45 install: skip 46 script: 47 - make coverage 48 after_success: 49 - bash <(curl -s https://codecov.io/bash) 50 51 - name: deploy 52 sudo: required 53 go: 54 - "1.13.x" 55 services: 56 - docker 57 env: 58 - DOCKER_COMPOSE_VERSION=1.21.2 59 - GO111MODULE=on 60 install: 61 - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 62 - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 63 - sudo apt-get update 64 - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce 65 - sudo rm /usr/local/bin/docker-compose 66 - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose 67 - chmod +x docker-compose 68 - sudo mv docker-compose /usr/local/bin 69 script: 70 - make build_ci 71 - make autotest dapp=all 72 - make docker-compose && make docker-compose-down 73