language: go

go_import_path: github.com/docker-library/go-dockerlibrary

go:
    - 1.11.x
    - 1.10.x

os:
    - linux
    - windows

script:
    - |
        set -e +x
        rm -f coverage.txt
        for d in $(go list ./...); do
            ( set -x; go test -v -race -cover -coverprofile=profile.out -covermode=atomic "$d" )
            if [ -f profile.out ]; then
                cat profile.out >> coverage.txt
                rm profile.out
            fi
        done

after_script:
    - bash <(curl -s https://codecov.io/bash)

language: go

go_import_path: github.com/docker-library/go-dockerlibrary

go:
    - 1.11.x
    - 1.10.x

os:
    - linux
    - windows

script:
    - |
        set -e +x
        rm -f coverage.txt
        for d in $(go list ./...); do
            ( set -x; go test -v -race -cover -coverprofile=profile.out -covermode=atomic "$d" )
            if [ -f profile.out ]; then
                cat profile.out >> coverage.txt
                rm profile.out
            fi
        done

after_script:
    - curl -fL https://codecov.io/bash -o codecov.sh && bash codecov.sh

Fix codecov on Windows workers by avoiding <()
Fix codecov on Windows workers by avoiding <()
