# Travis CI (http://travis-ci.org/) is a continuous integration service for
# open source projects. This file configures it to run unit tests for rtfblog.

language: go

go:
    - 1.13
    - tip

addons:
    postgresql: "9.4"

before_install:
    - nvm install 15.8
    - nvm use 15.8
    - go get -v golang.org/x/tools/cmd/cover
    - go get -v github.com/mattn/goveralls
    - go get -v github.com/steinbacher/goose/cmd/goose
    - go get -v github.com/go-bindata/go-bindata/...
    - npm install -g grunt-cli bower browserify json
    - sudo /etc/init.d/postgresql stop

script:
    - make
    - ./scripts/run-pg-tests.sh
    - ./scripts/run-sqlite-tests.sh

after_script:
    - $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci

# Travis CI (http://travis-ci.org/) is a continuous integration service for
# open source projects. This file configures it to run unit tests for rtfblog.

language: go

go:
    - 1.14
    - 1.15

addons:
    postgresql: "9.4"

before_install:
    - nvm install 15.8
    - nvm use 15.8
    - go get -v golang.org/x/tools/cmd/cover
    - go get -v github.com/mattn/goveralls
    - go get -v github.com/steinbacher/goose/cmd/goose
    - go get -v github.com/go-bindata/go-bindata/...
    - npm install -g grunt-cli bower browserify json
    - sudo /etc/init.d/postgresql stop

script:
    - make
    - ./scripts/run-pg-tests.sh
    - ./scripts/run-sqlite-tests.sh

after_script:
    - $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci

Use Go versions 1.14 and 1.15
Use Go versions 1.14 and 1.15

Doesn't build on 1.16 yet, something related to modules:

    src/crypto_helper.go:4:2: missing go.sum entry for module providing package golang.org/x/crypto/bcrypt (imported by github.com/rtfb/rtfblog/src); to add:
            go get github.com/rtfb/rtfblog/src
    ../../../../pkg/mod/github.com/rtfb/gopass@v0.0.0-20160210183552-88d06c8eecdb/nix.go:9:2: missing go.sum entry for module providing package golang.org/x/crypto/ssh/terminal (imported by github.com/rtfb/gopass); to add:
            go get github.com/rtfb/gopass@v0.0.0-20160210183552-88d06c8eecdb
