-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (54 loc) · 1.56 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
language: go
dist: bionic
go:
- 1.17.x
- 1.18.x
# sudo enabled, fully virtualized virtual machine required for mysql 5.7.
# https://docs.travis-ci.com/user/database-setup/#mysql
# https://docs.travis-ci.com/user/reference/trusty/
services:
- mysql
env:
global:
- GO_ENV=test
- CC_TEST_REPORTER_ID=871aa7166cc89677d1839bca6a9213454dcc94344f8ef937f07360e255cb774c
before_install:
- nvm --version
- nvm install lts/fermium
- node --version
- env
- mysql --version
- go install -tags sqlite github.com/gobuffalo/cli/cmd/buffalo@latest
- go install github.com/mattn/goveralls@latest
- ls -l $GOPATH/bin
- buffalo version
- buffalo help
install:
- go mod tidy
- mkdir -p $TRAVIS_BUILD_DIR/public/assets
- yarn
- sh ./scripts/keygen.sh
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
go_import_path: github.com/hyeoncheon/uart
script:
- buffalo plugins install
- buffalo plugins list
- buffalo build
- cp database.yml.travis database.yml
- >
UART_HOME=`pwd` buffalo test -coverprofile=c.out -covermode=count ./... &&
./cc-test-reporter after-build --exit-code 0
- >
buffalo pop drop -e test &&
buffalo pop create -e test &&
buffalo pop migrate -e test &&
UART_HOME=`pwd` goveralls -v -service=travis-ci
after_script: true
after_success:
# for codecov.io
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- chmod +x codecov
- ./codecov -v -f c.out