This repository has been archived by the owner on Feb 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (59 loc) · 2.34 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
language: go
go:
- 1.4
- 1.5
- 1.6
- tip
os:
- linux
- osx
sudo: false
services:
# github.com/kenorld/egret-core/cache
- memcache
- redis-server
before_install:
# TRAVIS_OS_NAME - linux and osx
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install memcached redis; fi'
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then nohup /usr/local/opt/memcached/bin/memcached & fi'
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then nohup redis-server /usr/local/etc/redis.conf & fi'
install:
# Setting environments variables
- export PATH=$PATH:$HOME/gopath/bin
- export EGRET_BRANCH="develop"
- 'if [[ "$TRAVIS_BRANCH" == "master" ]]; then export EGRET_BRANCH="master"; fi'
- 'echo "Travis branch: $TRAVIS_BRANCH, Egret dependency branch: $EGRET_BRANCH"'
- go get -v github.com/kenorld/egret-core/...
- rm -rf ../config
- git clone -b $EGRET_BRANCH git://github.com/kenorld/egret-extra/modules ../modules/
- git clone -b $EGRET_BRANCH git://github.com/kenorld/egret-cmd ../cm
d/
- git clone -b $EGRET_BRANCH git://github.com/kenorld/egret-conf ../config/
- git clone -b $EGRET_BRANCH git://github.com/kenorld/egret-corn../cron/
- git clone git://github.com/kenorld/egret-samples ../samples/
- go get -v github.com/kenorld/egret-cmd/egret
script:
- go test -v github.com/kenorld/egret-core...
# Ensure the new-app flow works (plus the other commands).
- egret version
- egret new my/testapp
- egret test my/testapp
- egret clean my/testapp
- egret build my/testapp build/testapp
- egret build my/testapp build/testapp prod
- egret package my/testapp
- egret package my/testapp prod
# Build & run the sample apps
- egret test github.com/kenorld/egret-samples/booking
- egret test github.com/kenorld/egret-samples/chat
- egret test github.com/kenorld/egret-samples/facebook-oauth2
- egret test github.com/kenorld/egret-samples/twitter-oauth
- egret test github.com/kenorld/egret-samples/validation
- egret test github.com/kenorld/egret-samples/upload
# Commented out persona test sample, since persona.org gonna be shutdown.
# Also http://personatestuser.org becomes non-responsive most of the time.
# https://wiki.mozilla.org/Identity/Persona_Shutdown_Guidelines_for_Reliers
# - egret test github.com/kenorld/egret-samples/persona
matrix:
allow_failures:
- go: tip