forked from laincloud/archon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lain.yaml
26 lines (23 loc) · 1.06 KB
/
lain.yaml
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
appname: archon # just for travis ci as a test
build:
base: laincloud/centos-lain:20180103
prepare:
version: "20180103"
script:
- yum clean all
- yum update -y
- yum install -y gcc-c++
- git clone --depth=1 https://github.com/golang/sys.git $GOPATH/src/golang.org/x/sys
- git clone --depth=1 https://github.com/golang/net.git $GOPATH/src/golang.org/x/net
- go get github.com/mijia/gobuildweb
- cd $GOPATH/src/github.com/mijia/gobuildweb && sed -i '/deps = append(deps, "browserify", "coffeeify", "envify", "uglifyify", "babelify", "babel-preset-es2015", "babel-preset-react", "nib", "stylus")/d' cmds.go && go install
- mkdir -p $GOPATH/src/github.com/laincloud/archon
- cd $GOPATH/src/github.com/laincloud && cp -r /lain/app/* $GOPATH/src/github.com/laincloud/archon/
script:
- rm -rf $GOPATH/src/github.com/laincloud/archon/*
- cp -r /lain/app/* $GOPATH/src/github.com/laincloud/archon/
- cd $GOPATH/src/github.com/laincloud/archon && gobuildweb dist
worker:
cmd: bash
notify:
slack: "#lain"