github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/.circleci/config/config.yml (about)

     1  version: 2.1
     2  
     3  references:
     4    # environment specific references - aim to avoid conflicts
     5    go-machine-image: &go_machine_image
     6      circleci/classic:201808-01
     7    go-machine-recent-image: &go_machine_recent_image
     8      ubuntu-1604:201903-01
     9  
    10    # common references
    11    common_envs: &common_envs
    12      GOMAXPROCS: 1
    13      NOMAD_SLOW_TEST: 1
    14      GOTESTSUM_JUNITFILE: /tmp/test-reports/results.xml
    15      GOTESTSUM_JSONFILE: /tmp/test-reports/testjsonfile.json
    16      # disable implicit git paging.  CircleCI runs commands with in a tty
    17      # making git assume it's an interactive session.
    18      PAGER: cat
    19      GIT_PAGER: cat
    20  
    21  executors:
    22    go:
    23      working_directory: /go/src/github.com/hashicorp/nomad
    24      docker:
    25        - image: golang:1.14.1
    26      environment:
    27        <<: *common_envs
    28        GOPATH: /go
    29  
    30    go-machine:
    31      working_directory: ~/go/src/github.com/hashicorp/nomad
    32      machine:
    33        image: *go_machine_image
    34      environment: &machine_env
    35        <<: *common_envs
    36        GOPATH: /home/circleci/go
    37        GOLANG_VERSION: 1.14.1
    38  
    39    # uses a more recent image with unattended upgrades disabled properly
    40    # but seems to break docker builds
    41    go-machine-recent:
    42      working_directory: ~/go/src/github.com/hashicorp/nomad
    43      machine:
    44        image: *go_machine_recent_image
    45      environment: *machine_env
    46  
    47    go-macos:
    48      working_directory: ~/go/src/github.com/hashicorp/nomad
    49      macos:
    50        xcode: 11.3.1
    51      environment:
    52        <<: *common_envs
    53        GOPATH: /Users/distiller/go
    54        GOLANG_VERSION: 1.14