github.com/vlifesystems/rulehunter@v0.0.0-20180501090014-673078aa4a83/.travis.yml (about)

     1  language: go
     2  go_import_path: github.com/vlifesystems/rulehunter
     3  sudo: required
     4  
     5  go:
     6    - 1.8
     7    - 1.9
     8    - tip
     9  
    10  services:
    11    - mysql
    12    - postgresql
    13  
    14  before_install:
    15    - go get github.com/mattn/goveralls
    16    - go get golang.org/x/tools/cmd/cover
    17    - go get github.com/lawrencewoodman/roveralls
    18    - mysql < ci/createflow_travis_mysql.sql
    19    - psql -U postgres < ci/createflow_travis_postgres.sql
    20  
    21  script:
    22    # Run the tests
    23    - chmod +x linux-test-su.sh
    24    - sudo ./linux-test-su.sh $GOPATH `which go` "travis upstart"
    25    - pwd
    26    # Check the test coverage
    27    - go test -covermode=count -coverprofile=profile.coverprofile
    28    - ls -la profile.coverprofile
    29    - cat profile.coverprofile
    30    - $HOME/gopath/bin/roveralls -v
    31    - $HOME/gopath/bin/goveralls -coverprofile=roveralls.coverprofile -service=travis-ci
    32    # Process the examples
    33    - cd examples
    34    - chmod +x bin/init_www_unix.sh
    35    - bin/init_www_unix.sh
    36    # Remove the following experiment because it takes too long
    37    - rm experiments/acmeprinters_repair016_how_many_callbacks.yaml
    38    - rulehunter --config=config_quick.yaml