forked from revel/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: go
go:
- "1.13.x"
- "1.14.x"
- "1.15.x"
- "tip"
os:
- linux
- osx
- windows
sudo: false
branches:
only:
- master
- develop
env:
# Setting environments variables
- GO111MODULE=on
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/terhitormanen/revel ../revel/
- git clone -b $REVEL_BRANCH git://github.com/terhitormanen/cmd ../cmd/
- git clone -b $REVEL_BRANCH git://github.com/terhitormanen/config ../config/
- git clone -b $REVEL_BRANCH git://github.com/terhitormanen/cron ../cron/
- go get -t -v github.com/terhitormanen/revel/...
- go get -t -v github.com/terhitormanen/modules/...
script:
- go test -v github.com/terhitormanen/modules/csrf/...
- go test -v github.com/terhitormanen/modules/server-engine/...
- go test -v github.com/terhitormanen/modules/template-engine/...
- go test -v github.com/terhitormanen/modules/orm/...
matrix:
allow_failures:
- go: tip
- os: "windows"