github.com/zaquestion/lab@v0.25.1/.travis.yml (about) 1 language: go 2 3 os: 4 - linux 5 6 go: 7 - 1.17.x 8 9 # use containers which run faster and have cache 10 sudo: false 11 12 cache: 13 directories: 14 - $HOME/.cache/go-build 15 - $HOME/gopath/pkg/mod 16 17 addons: 18 apt: 19 packages: 20 - silversearcher-ag 21 22 before_script: 23 - echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config 24 - echo -e "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDkTcgXnHuqR0gbwegnr9Zxz4hTkjjV/SpgJNPJz7mo/HKNbx0rqjj1P0yGR053R9GSFFim2ut4NK9DPPUkQdyucw+DoLkYRHJmlJ4BNa9NTCD0sl+eSXO2969kZojCYSOgbmkCJx8mdgTwhzdgE/jhBrsY0hPE6pRTlU+H68/zeNdJUAIJf0LLXOm3hpTKLA19VICltl/j9VvBJpgRHdBylXEyL8HokYpjkQQk1ZXj3m7Nlo8yDdg4VcljOJWC+Xh8kxRMfK5x/VRVsYKCQXN5QlzKeqf7USRDUS/7mFoPUBW+d4kwKtGxRsWuIL2yeqzifZUTOgsh9+ZWAWxWffQZ your_email@example.com" > ~/.ssh/id_rsa.pub 25 - echo -e "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEA5E3IF5x7qkdIG8HoJ6/Wcc+IU5I41f0qYCTTyc+5qPxyjW8d\nK6o49T9MhkdOd0fRkhRYptrreDSvQzz1JEHcrnMPg6C5GERyZpSeATWvTUwg9LJf\nnklztvevZGaIwmEjoG5pAicfJnYE8Ic3YBP44Qa7GNITxOqUU5VPh+vP83jXSVAC\nCX9Cy1zpt4aUyiwNfVSApbZf4/VbwSaYER3QcpVxMi/B6JGKY5EEJNWV495uzZaP\nMg3YOFXJYziVgvl4fJMUTHyucf1UVbGCgkFzeUJcynqn+1EkQ1Ev+5haD1AVvneJ\nMCrRsUbFriC9snqs4n2VEzoLIffmVgFsVn30GQIDAQABAoIBAQDPQm2sQbti0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YBtU/TSF/TATZY5XtrN9O+HX1Fbz70Ci8XgvioheVI2fezOcXPRzDcC\nOYPaCMNKA5E8gHdg4s0TN7uDvKTJ+KhSg2V7gZ39A28dHrJaRX7Nz4k6t2uEBjX9\na1JidpAIbJ+3w7+hj6L299tVZvS+Y/6Dz/uuEQGXfJg/l/5CCvQPsA==\n-----END RSA PRIVATE KEY-----" > ~/.ssh/id_rsa 26 - chmod 600 ~/.ssh/id_rsa* 27 - eval `ssh-agent -s` 28 - ssh-add ~/.ssh/id_rsa 29 30 script: 31 - travis_wait 20 make test 32 - diff -u <(echo -n) <(gofmt -d .) 33 34 after_success: 35 - | 36 for r in $(ag -Q 'log.Fatal' | awk -F: '{ print "github.com/zaquestion/lab/" $1 ":" $2-1 "\\.[0-9][0-9]\\?," $2+1 }' | sed 's|/|\\/|g') 37 do sed -i "/$r/d" coverage.txt 38 done 39 - bash <(curl -s https://codecov.io/bash) 40 - git reset HEAD --hard 41 42 deploy: 43 provider: script 44 skip_cleanup: true 45 script: curl -sL https://git.io/goreleaser | GO111MODULE=on bash 46 on: 47 branch: master 48 tags: true 49 condition: $TRAVIS_OS_NAME = linux 50 51 # docs have to be built and deployed after goreleaser or the release shas won't 52 # match 53 after_deploy: 54 - sed -i "s|lab version.\+$|lab version $(echo ${TRAVIS_TAG} | tr -d 'v')|" README.md 55 - DEPLOY=1 docs/build.sh 56 57 notifications: 58 email: false 59 60 env: 61 global: 62 secure: "GIUVJh4CgdQApuW2kI5KtppeB3GzBGslybjiLI9RA5ndEkcvK8Af/RrlUFCt7yUgXwmlUAdxg9YLAmTHfyqrqdO80ODhmcN4PvG219mP0G8E56Dodr4zRCMOZ6OjpbC9GXNc90gfuEZxAYFK+HGUlhtJguOWJ6LV54wkqMelTn6LCLjr6cR+WBHkhZK89koZCEsnGGGG7C3RS7St+EuZtxPSM1NSOqB86buRlaTTJ7LXAGGaTlK90QGUBQAFTvdPnO65kBDBNK77wgXiVteSzHWtm1mnk4Ng+jGu3B9JMdW84o6JCNnCAGGqCu8CrKloWhoUI2BKJrE7rYYiRJ7sARMxJOoZPWaVN+8UU3VFP9gau/671Q9zUzprQ/YbKnJb694MGTmC9DAeUIpgVb9I0dd+Y1JeeKXqRiohn7Coa727yiWEnUbf2MDxVlRDUbZ+RI5NuegIEIlTiu5s2fQHiGvHwnx2ltsBMtRTvLibSQwotZJIFv0Mgcxe/YC0/CvpAH9069Mj3geApFfNtbi/1XiA19e0Aq70S+qRpBlUIops/5YaCCfAqiXGCkG/iY/Vc8yjqeCd6d3C2oSTQfWNpRAJKPTtfFuLuudOARJEf6wsa/ct5PZOjOTvDr0NMQZXkvdKm36WhiSIeUoUtMkQqn2FkKoQgbvoYll9HUYcjG8=" 63