Add API Framework Revel Source Files
[iec.git] / src / foundation / api / revel / .travis.yml
1 language: go
2
3 go:
4   - "1.8.x"
5   - "1.9.x"
6   - "1.10.x"
7   - "1.11.x"
8   - "tip"
9
10 os:
11   - linux
12   - osx
13   - windows
14
15 sudo: false
16
17 branches:
18   only:
19     - master
20     - develop
21
22 services:
23   # github.com/revel/revel/cache
24   - memcache
25   - redis-server
26
27 before_install:
28   # TRAVIS_OS_NAME - linux and osx
29   - echo $TRAVIS_OS_NAME
30   - echo $PATH
31   - |
32     if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
33       brew update && brew install memcached redis && brew services start redis && brew services start memcached
34     fi
35   - |
36     if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
37       redis-server --daemonize yes
38       redis-cli info
39     else
40       # redis-server.exe
41       # redis-cli.exe info
42       echo $PATH
43     fi
44
45 install:
46   # Setting environments variables
47   - export PATH=$PATH:$HOME/gopath/bin
48   - export REVEL_BRANCH="develop"
49   - 'if [[ "$TRAVIS_BRANCH" == "master" ]]; then export REVEL_BRANCH="master"; fi'
50   - 'echo "Travis branch: $TRAVIS_BRANCH, Revel dependency branch: $REVEL_BRANCH"'
51   - git clone -b $REVEL_BRANCH git://github.com/revel/modules ../modules/
52   - git clone -b $REVEL_BRANCH git://github.com/revel/cmd ../cmd/
53   - git clone -b $REVEL_BRANCH git://github.com/revel/config ../config/
54   - git clone -b $REVEL_BRANCH git://github.com/revel/cron ../cron/
55   - git clone -b $REVEL_BRANCH git://github.com/revel/examples ../examples/
56   - go get -t -v github.com/revel/revel/...
57   - go get -t -v github.com/revel/cmd/revel
58
59 script:
60   - go test -v github.com/revel/revel/...
61
62 matrix:
63   allow_failures:
64     - go: tip
65     - os: windows
66     - go: 1.6
67       os: osx