before_install

This commit is contained in:
Max 2021-09-07 20:40:01 +08:00
parent 71d25d6884
commit c8c7c9a111

View file

@ -42,8 +42,6 @@ env:
# COV
- CODECOV_TOKEN='4b4d73e7-65b3-4d04-9353-11d71f38d904'
before_install:
- git config --global url."https://trheyi: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@github.com".insteadOf "https://github.com"
jobs:
fast_finish: true
include:
@ -52,6 +50,7 @@ jobs:
env:
- GOU_TEST_DSN="root:123456@tcp(127.0.0.1:3308)/xun?charset=utf8mb4&parseTime=True&loc=Local"'
before_install:
- echo -e "machine github.com\n login $CI_USER_TOKEN" > ~/.netrc
- unit/service.sh mysql8.0 # Start MySQL 8.0 service
- name: MySQL5.7-1.17.x
go: 1.17.x
@ -59,6 +58,7 @@ jobs:
- GOU_TEST_DSN="root:123456@tcp(127.0.0.1:3306)/xun?charset=utf8mb4&parseTime=True&loc=Local"'
# - GOU_TEST_API_ROOT="$TRAVIS_BUILD_DIR/app/apis" GOU_TEST_FLW_ROOT="$TRAVIS_BUILD_DIR/app/flows" GOU_TEST_MOD_ROOT="$TRAVIS_BUILD_DIR/app/models" GOU_TEST_PLG_ROOT="$HOME/data/gou-unit/plugins" GOU_TEST_PLG_LOG="$HOME/data/gou-unit/logs" GOU_TEST_DSN="root:123456@tcp(127.0.0.1:3306)/xun?charset=utf8mb4&parseTime=True&loc=Local" GOT_TEST_AES_KEY="^*aNBue!loLTTiP*4i&BSK7s#QRbe0^g" CODECOV_TOKEN='4b4d73e7-65b3-4d04-9353-11d71f38d904'
before_install:
- echo -e "machine github.com\n login $CI_USER_TOKEN" > ~/.netrc
- unit/service.sh mysql5.7 # Start MySQL 5.7 service
- name: MySQL5.6-1.17.x
go: 1.17.x
@ -66,6 +66,7 @@ jobs:
- GOU_TEST_DSN="root:123456@tcp(127.0.0.1:3307)/xun?charset=utf8mb4&parseTime=True&loc=Local"'
# - GOU_TEST_API_ROOT="$TRAVIS_BUILD_DIR/app/apis" GOU_TEST_FLW_ROOT="$TRAVIS_BUILD_DIR/app/flows" GOU_TEST_MOD_ROOT="$TRAVIS_BUILD_DIR/app/models" GOU_TEST_PLG_ROOT="$HOME/data/gou-unit/plugins" GOU_TEST_PLG_LOG="$HOME/data/gou-unit/logs" GOU_TEST_DSN="root:123456@tcp(127.0.0.1:3307)/xun?charset=utf8mb4&parseTime=True&loc=Local" GOT_TEST_AES_KEY="^*aNBue!loLTTiP*4i&BSK7s#QRbe0^g" CODECOV_TOKEN='4b4d73e7-65b3-4d04-9353-11d71f38d904'
before_install:
- echo -e "machine github.com\n login $CI_USER_TOKEN" > ~/.netrc
- unit/service.sh mysql5.6 # Start MySQL 5.6 service
git:
depth: 10
@ -78,6 +79,7 @@ go_import_path: github.com/yaoapp/gou
script:
- export
- cat ~/.netrc
- make vet
- make fmt-check
- make misspell-check