# Golang is not supported on Shippable ARM64 images. We install it by ourself.
language: c

runtime:
  nodePool: shippable_shared_aarch64

branches:
  only:
    - master

build:
  ci:
    - uname -a
    - curl -L -o golang.tar.gz https://dl.google.com/go/go1.11.2.linux-arm64.tar.gz
    - tar -C /usr/local -xzf golang.tar.gz
    - export PATH=$PATH:/usr/local/go/bin
    - export GOPATH=/v2ray
    - go get -t v2ray.com/core/...
    - go get -t v2ray.com/ext/...
    - go test -p 1 -v v2ray.com/core/...