github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/gopkg.in/mgo.v2/.travis.yml (about)

     1  language: go
     2  
     3  go_import_path: gopkg.in/mgo.v2
     4  
     5  addons:
     6      apt:
     7          packages:
     8  
     9  env:
    10      global:
    11          - BUCKET=https://niemeyer.s3.amazonaws.com
    12      matrix:
    13          - GO=1.4.1 MONGODB=x86_64-2.2.7
    14          - GO=1.4.1 MONGODB=x86_64-2.4.14
    15          - GO=1.4.1 MONGODB=x86_64-2.6.11
    16          - GO=1.4.1 MONGODB=x86_64-3.0.9
    17          - GO=1.4.1 MONGODB=x86_64-3.2.3-nojournal
    18          - GO=1.5.3 MONGODB=x86_64-3.0.9
    19          - GO=1.6   MONGODB=x86_64-3.0.9
    20  
    21  install:
    22      - eval "$(gimme $GO)"
    23  
    24      - wget $BUCKET/mongodb-linux-$MONGODB.tgz
    25      - tar xzvf mongodb-linux-$MONGODB.tgz
    26      - export PATH=$PWD/mongodb-linux-$MONGODB/bin:$PATH
    27  
    28      - wget $BUCKET/daemontools.tar.gz
    29      - tar xzvf daemontools.tar.gz
    30      - export PATH=$PWD/daemontools:$PATH
    31  
    32      - go get gopkg.in/check.v1
    33      - go get gopkg.in/yaml.v2
    34      - go get gopkg.in/tomb.v2
    35  
    36  before_script:
    37      - export NOIPV6=1
    38      - make startdb
    39  
    40  script:
    41      - (cd bson && go test -check.v)
    42      - go test -check.v -fast
    43      - (cd txn && go test -check.v)
    44  
    45  # vim:sw=4:ts=4:et