Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Uncomment all the integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarl committed Sep 25, 2019
1 parent c03bc8d commit 77d20dd
Showing 1 changed file with 101 additions and 105 deletions.
206 changes: 101 additions & 105 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,19 @@ jobs:
SRCDIR: /home/circleci/src/github.com/weaveworks/wksctl
working_directory: /home/circleci/src/github.com/weaveworks/wksctl
steps:
# - checkout
# - run:
# name: Install go
# command: |
# (cd ~ && curl -L $GOURL -o go.tar.gz && echo "$GOCHECKSUM go.tar.gz" | sha256sum -c)
# mkdir -p $GOROOT && tar xf ~/go.tar.gz -C $GOROOT --strip-components 1
- checkout
- run:
name: Install go
command: |
(cd ~ && curl -L $GOURL -o go.tar.gz && echo "$GOCHECKSUM go.tar.gz" | sha256sum -c)
mkdir -p $GOROOT && tar xf ~/go.tar.gz -C $GOROOT --strip-components 1
# - run:
# name: Run container tests
# command: |
# export PATH=$GOROOT/bin:$PATH
# go version
# make container-tests
- run: "true"
- run:
name: Run container tests
command: |
export PATH=$GOROOT/bin:$PATH
go version
make container-tests
integration-tests-container:
machine:
docker_layer_caching: true
Expand All @@ -134,50 +133,49 @@ jobs:
KUBECTL_CHECKSUM: da9d557989a0b9671a610f21642052febb8f70c3cf144c98a8a4f7ecab6bafe2
working_directory: /home/circleci/src/github.com/weaveworks/wksctl
steps:
# - checkout
# - run:
# name: Install go
# command: |
# (cd ~ && curl -L $GOURL -o go.tar.gz && echo "$GOCHECKSUM go.tar.gz" | sha256sum -c)
# mkdir -p $GOROOT && tar xf ~/go.tar.gz -C $GOROOT --strip-components 1
# - run:
# name: Install hugo
# command: |
# curl -L $HUGO_URL -o hugo.tar.gz
# echo "$HUGO_CHECKSUM hugo.tar.gz" | sha256sum -c
# tar xzf hugo.tar.gz hugo
# chmod +x hugo
# sudo mv hugo /usr/local/bin
# - run:
# name: Install footloose
# command: |
# curl -L $FOOTLOOSE_URL -o footloose
# echo "$FOOTLOOSE_CHECKSUM footloose" | sha256sum -c
# chmod +x footloose
# sudo mv footloose /usr/local/bin
# - run:
# name: Install kubectl
# command: |
# curl -L $KUBECTL_URL -o kubectl.tar.gz
# echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
# tar xvzf kubectl.tar.gz --strip-components=3
# sudo mv kubectl /usr/local/bin
# - restore_cache:
# keys:
# - local-docker-registry-images
# - run:
# name: Run integration container tests
# command: |
# export PATH=$GOROOT/bin:$PATH
# go version
# make integration-tests-container
# - save_cache:
# key: local-docker-registry-images
# paths:
# # This ought to match the path mounted by the local Docker registry
# # in the integration tests.
# - "/tmp/registry"
- run: "true"
- checkout
- run:
name: Install go
command: |
(cd ~ && curl -L $GOURL -o go.tar.gz && echo "$GOCHECKSUM go.tar.gz" | sha256sum -c)
mkdir -p $GOROOT && tar xf ~/go.tar.gz -C $GOROOT --strip-components 1
- run:
name: Install hugo
command: |
curl -L $HUGO_URL -o hugo.tar.gz
echo "$HUGO_CHECKSUM hugo.tar.gz" | sha256sum -c
tar xzf hugo.tar.gz hugo
chmod +x hugo
sudo mv hugo /usr/local/bin
- run:
name: Install footloose
command: |
curl -L $FOOTLOOSE_URL -o footloose
echo "$FOOTLOOSE_CHECKSUM footloose" | sha256sum -c
chmod +x footloose
sudo mv footloose /usr/local/bin
- run:
name: Install kubectl
command: |
curl -L $KUBECTL_URL -o kubectl.tar.gz
echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
tar xvzf kubectl.tar.gz --strip-components=3
sudo mv kubectl /usr/local/bin
- restore_cache:
keys:
- local-docker-registry-images
- run:
name: Run integration container tests
command: |
export PATH=$GOROOT/bin:$PATH
go version
make integration-tests-container
- save_cache:
key: local-docker-registry-images
paths:
# This ought to match the path mounted by the local Docker registry
# in the integration tests.
- "/tmp/registry"
integration-tests-gcp-centos:
docker:
- image: quay.io/wks/build:master-134af34f
Expand All @@ -191,35 +189,34 @@ jobs:
IMAGE_NAME: centos-cloud/centos-7
working_directory: /src/github.com/weaveworks/wksctl
steps:
# - checkout
# - setup_remote_docker
- checkout
- setup_remote_docker

# - attach_workspace:
# at: /tmp/workspace
# - run: /tmp/workspace/cmd/wksctl/wksctl version
# - run: env
- attach_workspace:
at: /tmp/workspace
- run: /tmp/workspace/cmd/wksctl/wksctl version
- run: env

# - run:
# name: Install kubectl
# command: |
# curl -L $KUBECTL_URL -o kubectl.tar.gz
# echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
# tar xvzf kubectl.tar.gz --strip-components=3
# sudo mv kubectl /usr/local/bin
- run:
name: Install kubectl
command: |
curl -L $KUBECTL_URL -o kubectl.tar.gz
echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
tar xvzf kubectl.tar.gz --strip-components=3
sudo mv kubectl /usr/local/bin
# - run:
# name: Create VMs
# command: $SRCDIR/test/integration/bin/up.sh
- run:
name: Create VMs
command: $SRCDIR/test/integration/bin/up.sh

# - run:
# name: Run integration tests
# command: $SRCDIR/test/integration/bin/test.sh
- run:
name: Run integration tests
command: $SRCDIR/test/integration/bin/test.sh

# - run:
# name: Destroy VMs
# command: $SRCDIR/test/integration/bin/down.sh
# when: always
- run: "true"
- run:
name: Destroy VMs
command: $SRCDIR/test/integration/bin/down.sh
when: always
integration-tests-gcp-ubuntu:
docker:
- image: quay.io/wks/build:master-134af34f
Expand All @@ -233,32 +230,31 @@ jobs:
IMAGE_NAME: ubuntu-os-cloud/ubuntu-1804-bionic-v20190530
working_directory: /src/github.com/weaveworks/wksctl
steps:
# - checkout
# - setup_remote_docker
- checkout
- setup_remote_docker

# - attach_workspace:
# at: /tmp/workspace
# - run: /tmp/workspace/cmd/wksctl/wksctl version
# - run: env
- attach_workspace:
at: /tmp/workspace
- run: /tmp/workspace/cmd/wksctl/wksctl version
- run: env

# - run:
# name: Install kubectl
# command: |
# curl -L $KUBECTL_URL -o kubectl.tar.gz
# echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
# tar xvzf kubectl.tar.gz --strip-components=3
# sudo mv kubectl /usr/local/bin
- run:
name: Install kubectl
command: |
curl -L $KUBECTL_URL -o kubectl.tar.gz
echo "$KUBECTL_CHECKSUM kubectl.tar.gz" | sha256sum -c
tar xvzf kubectl.tar.gz --strip-components=3
sudo mv kubectl /usr/local/bin
# - run:
# name: Create VMs
# command: $SRCDIR/test/integration/bin/up.sh
- run:
name: Create VMs
command: $SRCDIR/test/integration/bin/up.sh

# - run:
# name: Run integration tests
# command: $SRCDIR/test/integration/bin/test.sh
- run:
name: Run integration tests
command: $SRCDIR/test/integration/bin/test.sh

# - run:
# name: Destroy VMs
# command: $SRCDIR/test/integration/bin/down.sh
# when: always
- run: "true"
- run:
name: Destroy VMs
command: $SRCDIR/test/integration/bin/down.sh
when: always

0 comments on commit 77d20dd

Please sign in to comment.