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

Make travis build all four targets to make sure no file is missing #40

Merged
merged 4 commits into from Aug 8, 2018

Conversation

truizlop
Copy link
Member

The previous Travis configuration was building only the main target (for iOS). With the new configuration, Travis will build additionally the targets for macOS, watchOS and tvOS, making sure all files are included in all targets and preventing issues like #38.

secure: LatJH8j809/6dhEO6WhpQyU3lAjtkOYHAqWD14+bU6lfAc5oRrRFO4B7h56gnIDu6tvYJS0Qa/IhIuB3zZQ/GlG12oivgE/FKp1xXxxHwqjmhPHdetX9YkeAbicJ8YrSQ+C0UC6NMmP1WtU7cmLBV4Q1VwdPnVvRIrOVuWdh3ITUzUz/qQMTZwi+6Z1w92QvxbyytXDqti62NrUq81ba2c7pvBbFBujMp5hyd6+EcuZojYWGNN3cIR2DcPVXD9j4kwLyDPVAcN/OROAwaJlOZ63FbsoUcZULOAX/6s5bmcU1CuYc+eBrXX7KifSqj3yUW00Ea0ynyvsn2GWldAw5b8cYgiLuqQBp3jxtPVH/tEWRdO5TdFtMl8CDEJQiblINjFCXRbnAh8fnk/9jxKTkK+e1DXNQEk/w61+vUB21j74Zw8PhPRvCsoV8XgPkd34UiSlG5XkPaj+vImRpB2/kemYxynpY2Sjq+qoK4iUJy/DXhX/agThWCpjY1hWL2LNL/24mk6DbUHZGVH+4RgoBJxBFCI7ucSp14Og0cCFmhFfsq0nttN+xNegosmHnEcv1Z4tRW750rPf2dgGlXkf6s4msbZ/kyRnccs2zlh3JYYac509Fk98FRNfLb9q0C/jLb0xpg6qf9WbI1QbMcxPHKakyGEUuo+7FO+CLzrJ0qns=
matrix:
include:
- env: JOB="XCODE" DEST="OS=11.4,name=iPhone 8 Plus" SCHEME="Bow" SDK="iphonesimulator" ACTION="test"
Copy link
Contributor

Choose a reason for hiding this comment

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

This JOB env var is not used, is it needed for something?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, I copied it from an old script and forgot to remove it

.travis.yml Outdated
- env: JOB="XCODE" DEST="arch=x86_64" SCHEME="Bow-macOS" SDK="macosx" ACTION="test"
- env: JOB="XCODE" DEST="OS=11.4,name=Apple TV" SCHEME="Bow-tvOS" SDK="appletvsimulator" ACTION="test"
- env: JOB="XCODE" DEST="OS=4.3,name=Apple Watch - 42mm" SCHEME="Bow-watchOS" SDK="watchsimulator" ACTION="build"

before_install:
- carthage bootstrap
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that we have 4 jobs, we can improve this and build only the needed platform in each case with the flag --platform iOS MacOS etc.

But we can do this in a separate PR :)

@victorg1991
Copy link
Contributor

Thanks! LGTM 👍

Signing is failing on the CI, I've restarted it to see if the error persist. If it still failing I guess we can disable it

@truizlop
Copy link
Member Author

truizlop commented Aug 1, 2018

It is strange, I don't understand why some of the jobs are passing and others are failing. I have noticed that when they don't run concurrently, they succeed. Are you aware of some issue like this?

@victorg1991
Copy link
Contributor

Mmm, I tried locally and it was failing too, I have removed the code sign and it seems to work, let's see on travis

@victorg1991 victorg1991 force-pushed the trl/travis-builds-all-targets branch from a5f99a9 to 2406e32 Compare August 2, 2018 19:17
@truizlop
Copy link
Member Author

truizlop commented Aug 6, 2018

I built all 4 targets locally and it was working, but on CI it is still failing due to problems in code signing. Any idea about what we can do?

@codecov-io
Copy link

codecov-io commented Aug 8, 2018

Codecov Report

Merging #40 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #40   +/-   ##
=======================================
  Coverage   78.98%   78.98%           
=======================================
  Files         167      167           
  Lines        7410     7410           
=======================================
  Hits         5853     5853           
  Misses       1557     1557

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3dda4db...47823b1. Read the comment docs.

@truizlop
Copy link
Member Author

truizlop commented Aug 8, 2018

I changed test to build in the script for tvOS target, so that it only builds, doesn't test the target. Since code is tested in the other targets, I think we are good to go and the build is finally passing.

@truizlop truizlop merged commit 9b798ec into master Aug 8, 2018
@truizlop truizlop deleted the trl/travis-builds-all-targets branch August 8, 2018 09:20
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.

None yet

3 participants