File tree 4 files changed +25
-3
lines changed
4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 14
14
/release
15
15
/* .prom
16
16
/.metrics. * . * .prom
17
+ /.metrics. * . * .prom.unique
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ before_install:
12
12
&& sudo chmod +x /usr/local/bin/docker-compose
13
13
- sudo apt-get update && sudo apt-get install postgresql-client-common
14
14
script :
15
+ - ./gh-assets-clone.sh
15
16
- go run mage.go -v all
16
17
- " $HOME/gopath/bin/goveralls -coverprofile=cover.out -service=travis-ci"
17
18
- go run mage.go docker
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Script to setup the assets clone of the repository using GIT_ASSETS_BRANCH and
3
+ # GIT_API_KEY.
4
+
5
+ [ -z " $GIT_ASSETS_BRANCH " ] || exit 1
6
+ [ -z " $GIT_API_KEY " ] || exit 1
7
+
8
+ setup_git () {
9
+ git config --global user.email
" [email protected] " || exit 1
10
+ git config --global user.name " Travis CI" || exit 1
11
+ }
12
+
13
+ # Constants
14
+ ASSETS_DIR=" .assets-branch"
15
+
16
+ # Clone the assets branch with the correct credentials
17
+ git clone --single-branch -b " $GIT_ASSETS_BRANCH " \
18
+ " https://${GIT_API_KEY} @github.com/${TRAVIS_REPO_SLUG} .git" " $ASSETS_DIR " || exit 1
19
+
Original file line number Diff line number Diff line change 2
2
# Script to determine added and removed metrics.
3
3
# Not currently used in CI but useful for inspecting complicated changes.
4
4
5
+ # valid types: single or replicated
5
6
type=" $1 "
6
- version =" $2 "
7
+ pg_version =" $2 "
7
8
old_version=" $3 "
8
9
new_version=" $4 "
9
10
10
- comm -23 " $old_version " " $new_version " > " .metrics.${type} .${version } .removed"
11
- comm -13 " $old_version " " $new_version " > " .metrics.${type} .${version } .added"
11
+ comm -23 " $old_version " " $new_version " > " .metrics.${type} .${pg_version } .removed"
12
+ comm -13 " $old_version " " $new_version " > " .metrics.${type} .${pg_version } .added"
You can’t perform that action at this time.
0 commit comments