circle.yml 1007 Bytes
Newer Older
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
1 2 3 4 5
machine:
  environment:
    TEST_NO_FUSE: 1
    TEST_VERBOSE: 1
    TRAVIS: 1
6
    CIRCLE: 1
Jeromy's avatar
Jeromy committed
7 8
    IMPORT_PATH: "github.com/ipfs/go-ipfs"

9 10
  post:
    - sudo rm -rf /usr/local/go
Jeromy's avatar
Jeromy committed
11 12
    - if [ ! -e go1.5.2.linux-amd64.tar.gz ]; then curl -o go1.5.2.linux-amd64.tar.gz https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz; fi
    - sudo tar -C /usr/local -xzf go1.5.2.linux-amd64.tar.gz
Jeromy's avatar
Jeromy committed
13

14 15
  services:
    - docker
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
16 17 18 19 20

dependencies:
  pre:
    # setup ipv6
    - sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 net.ipv6.conf.default.disable_ipv6=0 net.ipv6.conf.all.disable_ipv6=0
Jeromy's avatar
Jeromy committed
21 22 23 24
    - go get -u github.com/whyrusleeping/gx
    - go get -u github.com/whyrusleeping/gx-go

  override:
Jeromy's avatar
Jeromy committed
25
    - mkdir -p "$HOME/.go_workspace/src/$IMPORT_PATH"
26
    - cp -a . "$HOME/.go_workspace/src/$IMPORT_PATH"
Jeromy's avatar
Jeromy committed
27
    - gx --verbose install --global
Jeromy's avatar
Jeromy committed
28

29
  cache_directories:
Jeromy's avatar
Jeromy committed
30
    - ~/go1.5.2.linux-amd64.tar.gz
Jeromy's avatar
Jeromy committed
31
    - "$HOME/.go_workspace/src/gx/ipfs"
Jeromy's avatar
Jeromy committed
32

Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
33 34 35 36
test:
  override:
    - make test_go_expensive
    - make test_sharness_expensive