Commit Graph

102 Commits

Author SHA1 Message Date
Matthias Radestock
c6e6854be9 publish master to dockerhub (again)
Fixes #2448
2017-04-17 19:06:21 +01:00
jpellizzari
1616f72ff6 Removed trigger job from circle.yml 2017-03-27 08:13:58 -07:00
Bryan Boreham
97dda9454d Fix mismatched code coverage errors
'codecgen' embeds a random integer in each identifier; this means code
coverage across different CircleCI lanes may not match.
Here we force the integer to 23 on every CircleCI build so they always match.
2017-03-23 13:31:38 +00:00
jpellizzari
b8326f417f Added job to trigger service-ui build 2017-03-22 13:00:57 -07:00
Alfonso Acosta
4c4b21ec66 Revert "Don't run integration tests, as the VMs are being compromised."
This reverts commit 093c21c207.
2017-03-08 14:43:33 +00:00
Tom Wilkie
093c21c207 Don't run integration tests, as the VMs are being compromised. 2017-03-08 14:30:15 +00:00
jpellizzari
3d0e109ea7 Fix for make ui-pkg-upload job rename 2017-02-27 11:53:13 -08:00
Alfonso Acosta
98395bb595 Create cloud agent image (#2284)
* Create cloud-agent image

* Refactor Makefile

* Push the image from CircleCI and releases

* Review feedback

* Review feedback

* Review feedback
2017-02-27 17:49:26 +01:00
Alfonso Acosta
5516f7b7d0 Revert "Disable Scope integration tests."
This reverts commit fe7ec8f133.
2017-02-27 11:54:40 +01:00
Tom Wilkie
4d6e8d4623 Don't collect coverage artifacts 2017-02-26 18:14:34 +00:00
Tom Wilkie
fe7ec8f133 Disable Scope integration tests. 2017-02-26 17:51:34 +00:00
jpellizzari
efdd8e4b0e Changed ui-build-pkg job to use a docker container 2017-02-24 14:03:05 -08:00
Alfonso Acosta
285faaf8fe Merge pull request #2225 from kinvolk/alban/integration2
integration tests: fix scripts
2017-02-22 13:47:02 +01:00
Mike Lang
cdfd5a9375 circle.yml: Fix ui upload step so it doesn't build twice
There are two source checkouts in circle, and we were building in the wrong one
(ie. not the one where the earlier build happened). This was wasteful at best
and buggy at worst due to build differences.
2017-02-21 20:33:02 -08:00
Alessandro Puccetti
fabafecb0c circle.yml: update python-requests pkg
Update the build-tools introduced a regression while building on circle
ci.

The PR https://github.com/weaveworks/build-tools/pull/73 is compatible
with python requests module `>=v2.4.2`. We need to provide a more
updated version of the one available in ubuntu 12.04 or 14.04
repositories.
2017-02-21 17:19:19 +01:00
Michael Schubert
f850f4486a Update circle.yml for Ubuntu 14.04
Change the owner of "$HOME/.bashrc.backup" as the Google cloud cli wants
to backup to this file during setup and it's owned by root in the Circle
CI image.

Second, allow writes to `/usr/local/go/pkg` for `go install net` to
work.
2017-02-21 17:19:19 +01:00
Alfonso Acosta
e5d8c8e8b6 Bump Docker in CircleCI to 1.10 2017-02-03 14:24:16 +00:00
Jordan Pellizzari
29edaebba3 Removed ui-build-pkg from circle.yml 2017-01-24 23:06:45 -08:00
jpellizzari
9acca772a9 Added npm module scripts to CI 2017-01-24 13:36:39 -08:00
Alfonso Acosta
75ed573425 Remove whitespace 2017-01-17 12:32:22 +00:00
Alfonso Acosta
8fe95c6519 Fix typo 2017-01-17 12:31:36 +00:00
Alfonso Acosta
a8a2911bda Deploy to quay when merging to master
To workaround the 500s obtained from Docker Hub
2017-01-17 11:20:25 +00:00
Paul Bellamy
6b54cd28b2 Merge pull request #2081 from weaveworks/remove-wcloud
Remove wcloud
2016-12-12 15:24:09 +00:00
Paul Bellamy
2caa2b6770 Remove wcloud 2016-12-12 10:07:09 +00:00
jpellizzari
38344a2a48 Added client linting to circle.yml 2016-12-08 11:08:25 -08:00
Alessandro Puccetti
655b532ac3 circleci: update circle.yml
Remove traffic-control plugin build and push.
2016-11-14 10:56:38 +01:00
Mike Lang
2bc31e8728 Fix circle.yml to actually deploy external ui changes (#1910)
Conditional was the wrong way around.
2016-10-07 18:20:39 -07:00
Mike Lang
ec37214778 Add flag to allow using external ui, and ability to upload to bucket during CI 2016-10-05 17:27:18 -07:00
Mike Lang
2c9f6c197f Split prog/static.go into two versions, and have a shim choose between them
This allows us to have both normal and external resource versions of static content
in the same binary, and switch with a flag
2016-10-05 17:26:57 -07:00
Alessandro Puccetti
66390c8b0e circleci: push traffic control plugin image to docker hub
After this patch, circleci builds the traffic control plugin image and
pushes it on docker hub. Rename traffic control plugin docker image
to "weaveworks/scope-traffic-control-plugin".
2016-09-12 15:47:28 +02:00
Tom Wilkie
38cc5aa29e On circle, report username as circle to wcould (#1815) 2016-08-18 12:06:49 +01:00
Mike Lang
21cfc83a56 Use image-tag from build-tools (#1785)
* Squashed 'tools/' changes from e9e7e6b..db5efc0

db5efc0 Merge pull request #28 from weaveworks/mike/add-image-tag
5312c40 Import image-tag script into build tools so it can be shared
7e850f8 Fix logs path
dda9785 Update deploy api
f2f4e5b Fix the wcloud client
3925eb6 Merge pull request #27 from weaveworks/wcloud-events
77355b9 Lint
d9a1c6c Add wcloud events, update flags and error nicely when there is no config

git-subtree-dir: tools
git-subtree-split: db5efc0537

* Remove ./image-tag and use ./tools/image-tag instead

image-tag is now shared code from the build-tools repo
2016-08-16 15:52:12 +01:00
Alban Crequy
d761f18e5b circle.yml: another fix for deploy master with non-upstream hub accounts
After https://github.com/weaveworks/scope/commit/e2441623 "wcloud
deploy" is run in the main deploy unit guarded by the environment
variable. But the test makes it fail when it is not run under
"weaveworks".
2016-07-21 15:25:34 +02:00
Tom Wilkie
e24416236f Circle will only run a single deploy step it seems 2016-07-21 13:47:15 +01:00
Alban Crequy
652913084a circle.yml: deploy master with non-upstream hub accounts (#1655)
* circle.yml: deploy master with non-upstream hub accounts

Since b4abe582f4, images are tagged on
Docker Hub. But this was not working for non-upstream Docker Hub
accounts. This patch should fix that.

Symptoms: https://circleci.com/gh/kinvolk/scope/23

> The push refers to a repository [docker.io/kinvolk/scope] (len: 1)
> error getting tags for kinvolk/scope: Tag does not exist for
> master-b89e9ec

Also, ensure that the Docker tag name does not include any '/'.

Symptoms: https://circleci.com/gh/kinvolk/scope/24

> docker tag weaveworks/scope weaveworks/scope:alban/hub1-ef739d9
> repository name component must match "[a-z0-9]+(?:[._-][a-z0-9]+)*"

* extras/in_parallel.sh: ensure unique schedule name

Use CircleCI environment variables as documented on:
https://circleci.com/docs/environment-variables/

Symptoms:
> $ cd $SRCDIR/extras; ./build_on_circle.sh
> Doing graphviz/graphviz
> make: *** No rule to make target `graphviz/graphviz'.  Stop.

See: https://github.com/weaveworks/scope/pull/1655#issuecomment-232696357

* circle.yml: separate wcloud deployment

Do not run wcloud for non-weaveworks builds, as suggested by
https://github.com/weaveworks/scope/pull/1655#discussion_r71179373
2016-07-21 10:26:23 +01:00
Tom Wilkie
cafaff8960 Wire up continuous delivery (#1654) 2016-07-12 13:05:21 +01:00
Jonathan Lange
1c440486f0 Delete experimental, replace with 'extras'
extras contains fixprobe and example, and ought to build properly
2016-07-07 14:30:08 +01:00
Tom Wilkie
b4abe582f4 Tag scope images on docker hub as we do in service (#1572) 2016-06-14 10:10:51 +01:00
Alban Crequy
b20e292390 circle.yml: deploy non-master branches (#1535)
By default, non-master branches are not deployed on the Docker Hub. With
this patch, you can enable this feature by setting the environment
variable DEPLOY_BRANCH in the circle configuration.

It will not be tagged with the "latest" tag but instead derive the tag
from the branch name. Since "/" are not allowed in Docker tag names, all
"/" are replaced by "-".

When testing code in Scope, I use circle to build the Docker image but I
don't want to always use my "master" branch for development.
2016-05-28 12:02:42 +01:00
Tom Wilkie
c8828826ae Allow user to specify table name and queue prefix. (#1538)
* Allow user to specify table name and queue prefix.

* Trim leading slash, catch missed queue prefix

* Comment out publish step until devwww is fixed.
2016-05-25 10:09:32 +01:00
Tom Wilkie
afd3cdeb22 Review feedback 2016-05-18 14:55:47 +01:00
Tom Wilkie
607b7fd187 Circle integration for auto docs publishing. 2016-05-18 14:00:50 +01:00
Alban Crequy
726fbad69d circle.yml: add variable $DOCKER_ORGANIZATION
With this patch, CircleCI will push by default to the Docker repository
$DOCKER_ORGANIZATION/scope. If $DOCKER_ORGANIZATION is not defined, it
will use $DOCKER_USER/scope.
2016-03-01 14:30:40 +01:00
Alban Crequy
c99400e6c0 circle.yml: deploy on a personal hub account
I would to do some changes in Scope and test my changes in Kubernetes,
following the guide on:
https://github.com/weaveworks/scope#using-weave-scope-with-kubernetes

For that, I need a Docker image of Scope hosted on a Docker hub and
reference that Docker image in my Kubernetes resource yaml file. Instead
of building Scope on my laptop and pushing it manually on my Docker Hub
account, I am using my CircleCI account to do this automatically.

This patch fixes the deployment target in circle.yml. It uses the
environment variable $DOCKER_USER from the CircleCI settings to guard
against unintended deployment. As before, only the "master" branch will
trigger the deployment.

This change should not impact the build of the official Scope Docker
image.
2016-02-29 16:59:29 +01:00
Alban Crequy
3b0fce1da3 circle.yml: disable GCE builds when credentials are missing
Another call to gce.sh was added in commit abebb0f197 ("Build new test VM
(to pickup latest Docker version)") but without the guard on
$SECRET_PASSWORD. Add the guard to be able to test on CircleCI without
Weaveworks' credentials.
2016-02-27 22:06:50 +01:00
Tom Wilkie
98d7887ba0 Condense some more steps in circle, this seems to speed things up. 2016-01-16 12:23:45 -08:00
Tom Wilkie
baec4688cb Various improvements to build & tests
- Fix broken wait in tests.
- Run lint in the build container.
- Merge two quick steps in the circle plan.
- Increase number of test VMs to 3 (again).
2016-01-15 10:00:41 -08:00
Tom Wilkie
8e4d3a4e8b Enable sharding for integration tests. 2016-01-12 21:54:49 +00:00
Tom Wilkie
bf91d5b8ba Use gce.sh, config.sh etc from tools. 2016-01-12 21:54:42 +00:00
Tom Wilkie
696a50fd27 Don't -i for different architectures. 2016-01-04 16:48:41 +00:00