github.com/kaisawind/go-swagger@v0.19.0/.circleci/config.yml (about) 1 version: 2 2 jobs: 3 build: 4 working_directory: /go/src/github.com/go-swagger/go-swagger 5 docker: 6 - image: goswagger/builder:20181222 7 steps: 8 - checkout 9 10 - run: 11 name: Run unit tests 12 command: ./hack/test.sh 13 no_output_timeout: 30m 14 15 - run: 16 name: Submit coverage results 17 command: bash <(curl -s https://codecov.io/bash) 18 19 # Running the race detector is not supported on circleCI 20 #- run: 21 # name: Run unit tests with race detector 22 # command: ./hack/test.sh --nocover 23 # no_output_timeout: 30m 24 25 - run: 26 name: Build docker images 27 command: ./hack/build-docker.sh --circleci 28 29 - run: 30 name: Test codegen builds 31 command: ./hack/codegen-nonreg.sh --circleci 32 33 - run: 34 name: Test canary builds 35 command: ./hack/run-canary.sh 36 37 - run: 38 name: Prepare release 39 command: | 40 if echo $CIRCLE_TAG | grep -q -E "[0-9]+(\\.[0-9]+)*"; then 41 . ./hack/deploy.sh 42 43 prepare 44 45 build_binary -os="linux darwin windows" -arch="amd64 386" 46 build_binary -os="linux" -arch="arm64 arm" 47 48 prepare_linuxpkg 49 build_linuxpkg deb 50 build_linuxpkg rpm 51 fi 52 53 - setup_remote_docker 54 55 - deploy: 56 name: Deploy release 57 command: | 58 if echo $CIRCLE_TAG | grep -q -E "[0-9]+(\\.[0-9]+)*"; then 59 . ./hack/deploy.sh 60 upload_to_github 61 upload_to_bintray 62 63 deploy_docker 64 fi 65 66 - deploy: 67 command: | 68 if [ $CIRCLE_BRANCH = "master" ]; then 69 export CIRCLE_TAG=dev 70 . ./hack/deploy.sh 71 deploy_docker 72 fi 73 74 - store_artifacts: 75 path: /usr/share/dist 76 77 - store_test_results: 78 path: /usr/share/testresults