forked from Qihoo360/wayne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (34 loc) · 887 Bytes
/
.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
matrix:
include:
- language: go
os:
- linux
go:
- 1.12.x
env:
- DB_USER=root DB_PASSWD='root' DB_TNS='tcp(127.0.0.1:3306)'
service:
- mysql
before_install:
- mysql -e 'select VERSION();'
- mysql -e 'create database wayne;'
- mysql -u root -e "create user wayne@localhost identified by 'wayne'; grant all on wayne.* to wayne@localhost;"
- mysql -u wayne -p'wayne' -e 'show databases;'
script:
- pwd
- export GO111MODULE=on
- export GOPROXY=https://goproxy.io
- make syncdb
- make run-backend &
- sleep 5
- pidof go
- language: node_js
os:
- linux
node_js:
- 12.16.1
before_install:
- cd src/frontend && npm install
script:
- npm run build
- npm run lint