An official CC example says this...

This commit is contained in:
Azareal 2018-07-30 18:02:29 +10:00
parent 928121fe7c
commit e46e8685a3
2 changed files with 5 additions and 4 deletions

View File

@ -9,8 +9,10 @@ before_install:
- cd $HOME - cd $HOME
- git clone https://github.com/Azareal/Gosora - git clone https://github.com/Azareal/Gosora
- cd Gosora - cd Gosora
- chmod -R 0755 .
- mv ./config/config_example.json ./config/config.json - mv ./config/config_example.json ./config/config.json
- chmod 755 ./update-deps-linux
- chmod 755 ./dev-update-travis
- chmod 755 ./run-linux-tests
- ./update-deps-linux - ./update-deps-linux
- ./dev-update-travis - ./dev-update-travis
install: true install: true
@ -20,7 +22,6 @@ before_script:
- ./cc-test-reporter before-build - ./cc-test-reporter before-build
script: ./run-linux-tests script: ./run-linux-tests
after_script: after_script:
- ./cc-test-reporter format-coverage --input-type gocov cover.out - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- ./cc-test-reporter upload-coverage
addons: addons:
mariadb: '10.0' mariadb: '10.0'

View File

@ -1,4 +1,4 @@
echo "Generating the dynamic code" echo "Generating the dynamic code"
go generate go generate
echo "Running tests" echo "Running tests"
go test -coverprofile=cover.out go test -coverprofile c.out ./...