Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis CI configuration #114

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Travis CI configuration #114

wants to merge 18 commits into from

Conversation

rparadowski
Copy link

PR includes configuration and scripts needed to use travis as CI. All code is moved to bash scripts that are used by both CircleCI and Travis.

What is missing in comparison with CircleCI:

  • Uploading artefacts after build

Copy link
Contributor

@boscard boscard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move all yml file to different directory, for example subdirectory templates ?

.cilibs/prepare_directories.sh Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
done

echo "Compile code"
if [ -z "$TRAVIS_BRANCH" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what about "$CIRCLECI_BRANCH" part ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it was messed up, should work now.

.cilibs/compile_code.sh Show resolved Hide resolved
FLOODGATE_EXTRA_PARAMS=$1

echo Test Floodgate against running Spinnaker instance
/floodgate/bin/floodgate --version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can add some info about what is happening before executing this commands?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added printing as was in .circleci/config.yml

.travis.yml Outdated
go:
- 1.14.1
env:
- REALESE_BRANCHES="release-v[0-9]+\.[0-9]+\.x" RELEASE_TAGS="v[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?" BUILD_OS="$([ $TRAVIS_EVENT_TYPE == cron ] || [[ $TRAVIS_BRANCH =~ $RELEASE_BRANCHES ]] || [[ $TRAVIS_TAG =~ $RELEASE_TAGS ]] && echo darwin) linux" BUILD_ARCH=amd64 GATE_API_BRANCH=release-1.20.x SEND_COVERITY=send
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use here multiline syntax for example with | ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improved readability but I don't see how I could make declaration of BUILD_ARCH more clear.

.travis.yml Outdated Show resolved Hide resolved
@@ -0,0 +1,19 @@
dist: xenial
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about kind of periodic workflow?

@rparadowski rparadowski force-pushed the travis branch 8 times, most recently from 4e1a2e2 to 35cbdd5 Compare July 22, 2020 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants