<commit_before>sudo: required
dist: trusty
env:
    global:
        - TARGET=iqn.2016-09.com.gotgt.gostor:example_tgt_0
    matrix:
        - TGT_CFG='{"storages":[{"deviceID":1000,"path":"file:/var/tmp/disk.img","online":true}],"iscsiportals":[{"id":0,"portal":"127.0.0.1:3260"}],"iscsitargets":{"iqn.2016-09.com.gotgt.gostor:example_tgt_0":{"tpgts":{"1":[0]},"luns":{"0":1000}}}}'
        - TGT_CFG='{"storages":[{"deviceID":1000,"path":"ceph-rbd:iscsi_pool/lun0","online":true}],"iscsiportals":[{"id":0,"portal":"127.0.0.1:3260"}],"iscsitargets":{"iqn.2016-09.com.gotgt.gostor:example_tgt_0":{"tpgts":{"1":[0]},"luns":{"0":1000}}}}'

language: go

go:
    - 1.6
    - 1.7
    - 1.8

install:
   - true

before_script:
    - echo ${TGT_CFG}
    - echo ${TARGET}
    - sudo apt-get update
    - ci/ceph_install.sh
    - bash ci/ceph_micro-osd.sh /tmp/micro-ceph
    - export CEPH_CONF=/tmp/micro-ceph/ceph.conf
    - ceph status
    - sudo apt-get install -y libcunit1 libcunit1-doc libcunit1-dev
    - sudo apt-get install -y open-iscsi

script:
   - cd ${TRAVIS_BUILD_DIR}
   - make
   - hack/verify-gofmt.sh
   - go test -v ./pkg/...
   - dd if=/dev/zero of=/var/tmp/disk.img bs=1024 count=102400
   - mkdir ${HOME}/.gotgt
   - echo ${TGT_CFG} > ${HOME}/.gotgt/config.json
   - ./_output/cmd/bin/gotgt daemon --log debug 1>/dev/null 2>&1 &<commit_msg>add more Go versions to travis<commit_after>sudo: required
dist: trusty
env:
    global:
        - TARGET=iqn.2016-09.com.gotgt.gostor:example_tgt_0
    matrix:
        - TGT_CFG='{"storages":[{"deviceID":1000,"path":"file:/var/tmp/disk.img","online":true}],"iscsiportals":[{"id":0,"portal":"127.0.0.1:3260"}],"iscsitargets":{"iqn.2016-09.com.gotgt.gostor:example_tgt_0":{"tpgts":{"1":[0]},"luns":{"0":1000}}}}'
        - TGT_CFG='{"storages":[{"deviceID":1000,"path":"ceph-rbd:iscsi_pool/lun0","online":true}],"iscsiportals":[{"id":0,"portal":"127.0.0.1:3260"}],"iscsitargets":{"iqn.2016-09.com.gotgt.gostor:example_tgt_0":{"tpgts":{"1":[0]},"luns":{"0":1000}}}}'

language: go

go:
    - "1.10"
    - "1.11"
    - "1.12"

install:
   - true

before_script:
    - echo ${TGT_CFG}
    - echo ${TARGET}
    - sudo apt-get update
    - ci/ceph_install.sh
    - bash ci/ceph_micro-osd.sh /tmp/micro-ceph
    - export CEPH_CONF=/tmp/micro-ceph/ceph.conf
    - ceph status
    - sudo apt-get install -y libcunit1 libcunit1-doc libcunit1-dev
    - sudo apt-get install -y open-iscsi

script:
   - cd ${TRAVIS_BUILD_DIR}
   - make
   - hack/verify-gofmt.sh
   - go test -v ./pkg/...
   - dd if=/dev/zero of=/var/tmp/disk.img bs=1024 count=102400
   - mkdir ${HOME}/.gotgt
   - echo ${TGT_CFG} > ${HOME}/.gotgt/config.json
   - ./_output/cmd/bin/gotgt daemon --log debug 1>/dev/null 2>&1 &
{'fraction_non_alphanumeric': 0.22076023391812866, 'fraction_numerical': 0.06542397660818713, 'mean_word_length': 3.317034700315457, 'pattern_counts': {'":': 52, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1240155', 'n_tokens_mistral': 1303, 'n_tokens_neox': 1144, 'n_words': 147}