circle.yml 1.21 KB
Newer Older
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
1 2 3 4
machine:
  environment:
    TEST_NO_FUSE: 1
    TEST_VERBOSE: 1
5
    TEST_NO_DOCKER: 1
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
6
    TRAVIS: 1
7
    CIRCLE: 1
Jeromy's avatar
Jeromy committed
8
    IMPORT_PATH: "github.com/ipfs/go-ipfs"
Jeromy's avatar
Jeromy committed
9
    GOPATH: "$HOME/.go_workspace"
10 11
    GOBIN: "$GOPATH/bin"
    SERVICE: "circle-ci"
Jeromy's avatar
Jeromy committed
12

13 14
  post:
    - sudo rm -rf /usr/local/go
Jeromy's avatar
Jeromy committed
15 16
    - if [ ! -e go1.7.linux-amd64.tar.gz ]; then curl -o go1.7.linux-amd64.tar.gz https://storage.googleapis.com/golang/go1.7.linux-amd64.tar.gz; fi
    - sudo tar -C /usr/local -xzf go1.7.linux-amd64.tar.gz
Jeromy's avatar
Jeromy committed
17

18 19
  services:
    - docker
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
20 21 22 23 24

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
25 26

  override:
27
    - rm -rf "$HOME/.go_workspace/src/$IMPORT_PATH"
Jeromy's avatar
Jeromy committed
28
    - mkdir -p "$HOME/.go_workspace/src/$IMPORT_PATH"
Jeromy's avatar
Jeromy committed
29
    - cp -a ./* "$HOME/.go_workspace/src/$IMPORT_PATH"
30
    - cd "$HOME/.go_workspace/src/$IMPORT_PATH" && make deps
Jeromy's avatar
Jeromy committed
31

32
  cache_directories:
Jeromy's avatar
Jeromy committed
33
    - ~/go1.7.linux-amd64.tar.gz
Jeromy's avatar
Jeromy committed
34
    - "$HOME/.go_workspace/src/gx/ipfs"
Jeromy's avatar
Jeromy committed
35

Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
36 37
test:
  override:
Jeromy's avatar
Jeromy committed
38
    - make test_go_expensive:
Jeromy's avatar
Jeromy committed
39
        pwd: "../.go_workspace/src/$IMPORT_PATH"
40
        parallel: true
41
    - make test_sharness_expensive:
Jeromy's avatar
Jeromy committed
42
        pwd: "../.go_workspace/src/$IMPORT_PATH"
43
        parallel: true