github.com/superfly/nomad@v0.10.5-fly/.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      # disable implicit git paging.  CircleCI runs commands with in a tty
    16      # making git assume it's an interactive session.
    17      PAGER: cat
    18      GIT_PAGER: cat
    19  
    20  executors:
    21    go:
    22      working_directory: /go/src/github.com/hashicorp/nomad
    23      docker:
    24        - image: golang:1.12.16
    25      environment:
    26        <<: *common_envs
    27        GOPATH: /go
    28  
    29    go-machine:
    30      working_directory: ~/go/src/github.com/hashicorp/nomad
    31      machine:
    32        image: *go_machine_image
    33      environment: &machine_env
    34        <<: *common_envs
    35        GOPATH: /home/circleci/go
    36        GOLANG_VERSION: 1.12.16
    37  
    38    # uses a more recent image with unattended upgrades disabled properly
    39    # but seems to break docker builds
    40    go-machine-recent:
    41      working_directory: ~/go/src/github.com/hashicorp/nomad
    42      machine:
    43        image: *go_machine_recent_image
    44      environment: *machine_env