Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Loki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Loki
Commits
d77e0fe2
Commit
d77e0fe2
authored
7 years ago
by
Tom Wilkie
Browse files
Options
Downloads
Patches
Plain Diff
Add unit tests to CI.
parent
44cd1a78
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.circleci/config.yml
+51
-0
51 additions, 0 deletions
.circleci/config.yml
Makefile
+1
-1
1 addition, 1 deletion
Makefile
with
52 additions
and
1 deletion
.circleci/config.yml
+
51
−
0
View file @
d77e0fe2
version
:
2
workflows
:
version
:
2
test-build-deploy
:
jobs
:
-
test
-
build
-
deploy
:
requires
:
-
build
-
test
jobs
:
test
:
docker
:
-
image
:
gcr.io/metrictank-gcr/logish-build-image:master-017c0b4
auth
:
username
:
_json_key
password
:
$GCR_CREDS
working_directory
:
/go/src/github.com/grafana/logish
steps
:
-
checkout
-
run
:
name
:
Build Images
command
:
|
# skip building the build image again
touch build-image/.uptodate &&
make BUILD_IN_CONTAINER=false test
build
:
docker
:
-
image
:
gcr.io/metrictank-gcr/logish-build-image:master-017c0b4
...
...
@@ -28,6 +58,27 @@ jobs:
touch build-image/.uptodate &&
make BUILD_IN_CONTAINER=false
deploy
:
docker
:
-
image
:
gcr.io/metrictank-gcr/logish-build-image:master-017c0b4
auth
:
username
:
_json_key
password
:
$GCR_CREDS
working_directory
:
/go/src/github.com/grafana/logish
steps
:
-
checkout
-
setup_remote_docker
-
run
:
name
:
Install Docker client
command
:
|
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://download.docker.com/linux/static/stable/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin
-
run
:
name
:
Push Images
command
:
|
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
d77e0fe2
...
...
@@ -118,7 +118,7 @@ lint: build-image/$(UPTODATE)
./tools/lint
-notestpackage
-ignorespelling
queriers
-ignorespelling
Queriers .
test
:
build-image/$(UPTODATE)
./tools/test
-netgo
go
test
./...
shell
:
build-image/$(UPTODATE)
bash
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment