forked from bsteciuk/kismatic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
59 lines (57 loc) · 2.12 KB
/
Copy pathcircle.yml
File metadata and controls
59 lines (57 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: 2
defaults: &defaults
working_directory: /go/src/github.com/apprenda/kismatic
docker:
- image: golang:1.8
jobs:
build:
<<: *defaults
steps:
- checkout
- run: make bare-test
- run: GOOS=linux make bare-dist
- store_artifacts:
path: out/kismatic.tar.gz
destination: kismatic-linux-amd64.tar.gz
- run: mkdir -p artifact/linux && cp out/kismatic.tar.gz artifact/linux/ # Used for releasing to GH
# Run tests
- run: mkdir -p /run/user/1026
- run: chown 1026:1026 /run/user/1026
- run: echo "$KISMATIC_INT_TEST_KEY" | base64 -d > ~/.ssh/kismatic-integration-testing.pem
- run: chmod 0600 ~/.ssh/kismatic-integration-testing.pem
- run:
command: make just-integration-test
no_output_timeout: 30m
environment:
GINKGO_OPTS: "-nodes=64 --flakeAttempts=2"
ANSIBLE_SSH_CONTROL_PATH: "/run/user/1026/ssh-%%r-%%h-%%p"
ANSIBLE_SSH_ARGS: "-o ControlMaster=auto -o ControlPersist=1800s -o ControlPath=/run/user/1026/ssh-%r-%h-%p"
- run:
command: |
if [[ -n "$CIRCLE_TAG" || -n "$RUN_SLOW_TESTS" ]]
then
make slow-integration-test
fi
no_output_timeout: 90m
environment:
GINKGO_OPTS: "-nodes=64 --flakeAttempts=2"
ANSIBLE_SSH_CONTROL_PATH: "/run/user/1026/ssh-%%r-%%h-%%p"
ANSIBLE_SSH_ARGS: "-o ControlMaster=auto -o ControlPersist=1800s -o ControlPath=/run/user/1026/ssh-%r-%h-%p"
# Build darwin
- run: GLIDE_GOOS=linux GOOS=darwin make bare-dist
- run: mv out out-darwin
- store_artifacts:
path: out-darwin/kismatic.tar.gz
destination: kismatic-darwin-amd64.tar.gz
- run: mkdir -p artifact/darwin && mv out-darwin/kismatic.tar.gz artifact/darwin/ # Used for releasing to GH
# Release to GitHub
- run: |
if [[ -n "$CIRCLE_TAG" ]]
then
go run release.go -tag $CIRCLE_TAG
fi
deployment:
fake_deploy_for_cci2:
tag: /.*/
commands:
- echo "make tags run in 2.0"