Skip to content

Fix .travis-docker.sh when opam 2 is used#237

Merged
edwintorok merged 1 commit intoocaml:masterfrom
gaborigloi:fix_travis_docker_opam2
Aug 9, 2018
Merged

Fix .travis-docker.sh when opam 2 is used#237
edwintorok merged 1 commit intoocaml:masterfrom
gaborigloi:fix_travis_docker_opam2

Conversation

@gaborigloi
Copy link
Copy Markdown
Contributor

Previously the git pull did not work, because the master branch was
checked out, and it failed to merge from the 2.0.0 branch. So make sure
we check out the 2.0.0 branch first before pulling.

Signed-off-by: Gabor Igloi gabor.igloi@citrix.com

Previously the git pull did not work, because the master branch was
checked out, and it failed to merge from the 2.0.0 branch. So make sure
we check out the 2.0.0 branch first before pulling.

Signed-off-by: Gabor Igloi <gabor.igloi@citrix.com>
@gaborigloi
Copy link
Copy Markdown
Contributor Author

This caused a Travis failure for one of our repos: https://travis-ci.org/xapi-project/nbd/jobs/414002003

I've tested the new script with Alpine and various Debian versions and it worked fine for me.

Copy link
Copy Markdown
Collaborator

@edwintorok edwintorok left a comment

Choose a reason for hiding this comment

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

Thanks, perhaps the history of the 2 branches diverged at some point.

@gaborigloi
Copy link
Copy Markdown
Contributor Author

It did. I've checked it.

@edwintorok edwintorok merged commit df757a8 into ocaml:master Aug 9, 2018
@gaborigloi gaborigloi deleted the fix_travis_docker_opam2 branch August 9, 2018 14:29
samoht added a commit to samoht/opam-repository that referenced this pull request Sep 24, 2018
CHANGES:

* Set variables before installing ppas (ocaml/ocaml-ci-scripts#234, @samoht)
* Fix name of system switch when using INSTALL_LOCAL=1 (ocaml/ocaml-ci-scripts#236, @samoht)
* Fix .travis-docker.sh when opam 2 is used (ocaml/ocaml-ci-scripts#237, @gaborigloi)
* Add support for BASE_REMOTE_BRANCH (ocaml/ocaml-ci-scripts#239, @lindig)
* Create a new switch if not pre-installed (ocaml/ocaml-ci-scripts#242, @NathanReb)
* Better lint for opam 1.2 files when using opam2 (ocaml/ocaml-ci-scripts#245, @samoht)
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.

2 participants