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

Commit

Permalink
Attempt to fix build failure in forked PRs (#154)
Browse files Browse the repository at this point in the history
* only push image if quay.io credentials are present

* fix command to be multi-line string

* flip backward test

* Add comment so circle will see the previous change

* only run gcp integration tests if secret key is available

* fix typo in config file

* Update rhel test to check for secret_key

Co-authored-by: Jerry Jackson <jerry@weave.works>
Co-authored-by: Mark Emeis <mark.emeis@weave.works>
  • Loading branch information
3 people committed Apr 6, 2020
1 parent 064057d commit 1a1d5f2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 42 deletions.
65 changes: 29 additions & 36 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,14 @@ jobs:
- kubectl
- cmd/wksctl/wksctl
- cmd/mock-https-authz-server/server
- run: docker login -u "$QUAY_IO_USER" -p "$QUAY_IO_PASSWORD" quay.io
- run: make push

- run:
# Allow builds from forks
name: Push image if quay login is available
command: |
if [ -n "$QUAY_IO_USER" -a -n "$QUAY_IO_PASSWORD" ]; then
docker login -u "$QUAY_IO_USER" -p "$QUAY_IO_PASSWORD" quay.io
make push
fi
unit-tests:
docker:
- image: quay.io/wks/build:master-134af34f
Expand Down Expand Up @@ -208,19 +213,14 @@ jobs:
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: Run integration tests
command: $SRCDIR/test/integration/bin/test.sh

- run:
name: Destroy VMs
command: $SRCDIR/test/integration/bin/down.sh
when: always
name: Centos integration tests
command: |
if [ -n "$SECRET_KEY" ]; then
$SRCDIR/test/integration/bin/up.sh
$SRCDIR/test/integration/bin/test.sh
$SRCDIR/test/integration/bin/down.sh
fi
- run: "true"
integration-tests-gcp-ubuntu:
docker:
Expand Down Expand Up @@ -250,17 +250,13 @@ jobs:
sudo mv kubectl /usr/local/bin
- 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: Destroy VMs
command: $SRCDIR/test/integration/bin/down.sh
when: always
name: Ubuntu integration tests
command: |
if [ -n "$SECRET_KEY" ]; then
$SRCDIR/test/integration/bin/up.sh
$SRCDIR/test/integration/bin/test.sh
$SRCDIR/test/integration/bin/down.sh
fi
- run: "true"
integration-tests-gcp-rhel:
docker:
Expand Down Expand Up @@ -290,15 +286,12 @@ jobs:
sudo mv kubectl /usr/local/bin
- run:
name: Create VMs
command: $SRCDIR/test/integration/bin/up.sh

- run:
name: Run integration tests
command: $SRCDIR/test/integration/bin/test.sh
name: rhel integration tests
command: |
if [ -n "$SECRET_KEY" ]; then
$SRCDIR/test/integration/bin/up.sh
$SRCDIR/test/integration/bin/test.sh
$SRCDIR/test/integration/bin/down.sh
fi
- run:
name: Destroy VMs
command: $SRCDIR/test/integration/bin/down.sh
when: always
- run: "true"
12 changes: 6 additions & 6 deletions pkg/apis/wksprovider/machine/crds/crds_vfsdata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a1d5f2

Please sign in to comment.