X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fapi%2Frevel%2F.travis.yml;fp=src%2Ffoundation%2Fapi%2Frevel%2F.travis.yml;h=2c815367d0c1ea8d32d4bf199723d8e333876074;hb=1d1ee6961c93781e1187d8c7faa868da6b2f01f4;hp=0000000000000000000000000000000000000000;hpb=56dd5e0f2164b37b40ac1daa188ccc618b4cbd19;p=iec.git diff --git a/src/foundation/api/revel/.travis.yml b/src/foundation/api/revel/.travis.yml new file mode 100644 index 0000000..2c81536 --- /dev/null +++ b/src/foundation/api/revel/.travis.yml @@ -0,0 +1,67 @@ +language: go + +go: + - "1.8.x" + - "1.9.x" + - "1.10.x" + - "1.11.x" + - "tip" + +os: + - linux + - osx + - windows + +sudo: false + +branches: + only: + - master + - develop + +services: + # github.com/revel/revel/cache + - memcache + - redis-server + +before_install: + # TRAVIS_OS_NAME - linux and osx + - echo $TRAVIS_OS_NAME + - echo $PATH + - | + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + brew update && brew install memcached redis && brew services start redis && brew services start memcached + fi + - | + if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then + redis-server --daemonize yes + redis-cli info + else + # redis-server.exe + # redis-cli.exe info + echo $PATH + fi + +install: + # Setting environments variables + - export PATH=$PATH:$HOME/gopath/bin + - export REVEL_BRANCH="develop" + - 'if [[ "$TRAVIS_BRANCH" == "master" ]]; then export REVEL_BRANCH="master"; fi' + - 'echo "Travis branch: $TRAVIS_BRANCH, Revel dependency branch: $REVEL_BRANCH"' + - git clone -b $REVEL_BRANCH git://github.com/revel/modules ../modules/ + - git clone -b $REVEL_BRANCH git://github.com/revel/cmd ../cmd/ + - git clone -b $REVEL_BRANCH git://github.com/revel/config ../config/ + - git clone -b $REVEL_BRANCH git://github.com/revel/cron ../cron/ + - git clone -b $REVEL_BRANCH git://github.com/revel/examples ../examples/ + - go get -t -v github.com/revel/revel/... + - go get -t -v github.com/revel/cmd/revel + +script: + - go test -v github.com/revel/revel/... + +matrix: + allow_failures: + - go: tip + - os: windows + - go: 1.6 + os: osx