mirror of https://github.com/AMT-Cheif/drift.git
Provide coverage upload token variable
This commit is contained in:
parent
053d4280fc
commit
7cddf6f5d7
|
@ -5,8 +5,10 @@ container:
|
|||
task:
|
||||
pub_cache:
|
||||
folder: $HOME/.pub-cache
|
||||
environment:
|
||||
CODECOV_TOKEN: ENCRYPTED[6322a159d9b7692b999d13fa2bc7981c8b61ecb1ac18ae076864f1355ee9b65088b2bf9d97d7860196e58bf1db5708af]
|
||||
pub_get_script: tool/pub_get.sh
|
||||
analyze_script: tool/analyze.sh
|
||||
test_moor_script: tool/test_moor.sh
|
||||
test_sqlparser_script: tool/test_sqlparser.sh
|
||||
format_coverage_script: tool/upload_coverage.sh
|
||||
format_coverage_script: tool/upload_coverage.sh
|
15
.travis.yml
15
.travis.yml
|
@ -1,15 +0,0 @@
|
|||
language: dart
|
||||
|
||||
dart:
|
||||
- stable
|
||||
env:
|
||||
- PKG="moor"
|
||||
- PKG="moor_generator"
|
||||
- PKG="sqlparser"
|
||||
|
||||
script: ./tool/mono_repo_wrapper.sh
|
||||
#after_success: ./tool/upload_coverage.sh
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- "$HOME/.pub-cache"
|
|
@ -1,5 +1,5 @@
|
|||
# Moor
|
||||
[](https://travis-ci.com/simolus3/moor)
|
||||
[](https://cirrus-ci.com/github/simolus3/moor)
|
||||
[](https://codecov.io/gh/simolus3/moor)
|
||||
|
||||
|
||||
|
|
|
@ -6,4 +6,5 @@ stages:
|
|||
- dartanalyzer: --fatal-infos --fatal-warnings lib/ test/
|
||||
- dartfmt
|
||||
- unit_test:
|
||||
- command: dart tool/coverage.dart
|
||||
- command: pub run build_runner build -v --delete-conflicting-outputs
|
||||
- test
|
|
@ -0,0 +1,9 @@
|
|||
dart:
|
||||
- stable
|
||||
|
||||
stages:
|
||||
- analyze:
|
||||
- dartanalyzer: --fatal-infos --fatal-warnings lib/ test/
|
||||
- dartfmt
|
||||
- unit_test:
|
||||
- test
|
|
@ -1,13 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
case $PKG in
|
||||
moor_generator)
|
||||
./tool/travis.sh dartfmt dartanalyzer test
|
||||
;;
|
||||
sqlparser)
|
||||
./tool/travis.sh dartfmt dartanalyzer test
|
||||
;;
|
||||
moor)
|
||||
./tool/travis.sh dartfmt dartanalyzer command
|
||||
;;
|
||||
esac
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
# Created with package:mono_repo v1.2.1
|
||||
# We don't use travis, but this let's us run mono_repo presubmit locally
|
||||
|
||||
if [ -z "$PKG" ]; then
|
||||
echo -e '\033[31mPKG environment variable must be set!\033[0m'
|
||||
|
@ -21,8 +22,8 @@ while (( "$#" )); do
|
|||
case $TASK in
|
||||
command) echo
|
||||
echo -e '\033[1mTASK: command\033[22m'
|
||||
echo -e 'dart tool/coverage.dart'
|
||||
dart tool/coverage.dart || EXIT_CODE=$?
|
||||
echo -e 'pub run build_runner build -v --delete-conflicting-outputs'
|
||||
pub run build_runner build -v --delete-conflicting-outputs || EXIT_CODE=$?
|
||||
;;
|
||||
dartanalyzer) echo
|
||||
echo -e '\033[1mTASK: dartanalyzer\033[22m'
|
||||
|
@ -44,7 +45,6 @@ while (( "$#" )); do
|
|||
;;
|
||||
esac
|
||||
|
||||
echo -e 'task exited with' $EXIT_CODE
|
||||
shift
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue