Comments (8)
If your repository is public, can you post the link to the travis-job. I will need to investigate more into this but if you think it will improve timings, then I am happy to review your PR.
Thanks
from swiftframeworktemplate.
@gobetti Cache seems to work fine with a library which was created with this template - https://travis-ci.org/Restofire/Restofire/jobs/378606026 (line 2900-2902). So I think, It creates individual cache per stage.
Closing this issue for now.
from swiftframeworktemplate.
Sure! Here is build #1: https://travis-ci.org/gobetti/RxCocoaNetworking/builds/384253067
I would expect it to build all Carthage dependencies on #1.1 only but then #1.2 did it too and #1.3 was also doing it when I cancelled the build.
Then I made that change I mentioned in the OP and started build #2: https://travis-ci.org/gobetti/RxCocoaNetworking/builds/384426851
This time, both #2.1 and #2.2 seemed to reuse correctly the cache from build #1, but #2.3 started to build the Carthage dependencies and I cancelled it.
I see you closed this issue because we share the belief that the cache is done per stage instead of per build, but isn't there a way to have it per build? Otherwise, even though a stage is only meant for iOS, it will build tvOS, macOS, watchOS... and everything again in the next stage.
from swiftframeworktemplate.
I'll test https://docs.travis-ci.com/user/build-stages/warm-cache/ and let you know
from swiftframeworktemplate.
Yes, For the first run, it takes a lot longer than expected and it reduces to 4 secs from next builds. It would be great to even reduce the time on the first run. I will investigate a little more but will give this less priority over others.
I appreciate your contribution and happy to review if you find a solution.
from swiftframeworktemplate.
The prepare cache stage suggested by Travis doesn't seem to work: https://travis-ci.org/gobetti/RxCocoaNetworking/builds/384454891
That stage itself was able to use the existent cache, and then the jobs on the next stage that had run on previous builds also used the cache, but once it runs a job that hadn't run before, again it says it couldn't find anything cached for Carthage :(
I'll probably give up on Travis and move to Circle which seems to be what the community is doing
from swiftframeworktemplate.
Circle ci is also good but it is not free for macOS containers and I don't see this as a big issue right now as all the subsequent builds use caches and time is decreased drastically. It's not something to invest a lot of time at.
Closing it for now 👍🏻. Thanks
from swiftframeworktemplate.
It's fine to keep it closed, I think we'll be able to do something about it once travis-ci/travis-build#1265 is merged
from swiftframeworktemplate.
Related Issues (20)
- Xcode configuration HOT 3
- Add .gitignore
- Change repository name to FrameworkTemplate
- Fix CocoaPods deploy from travis-ci
- Use same bundle identifier across all platforms
- Package.swift hard-coded string HOT 1
- ERROR: Stopping generation because post_gen_project hook script didn't exit successfully HOT 4
- Adding an Example to the project HOT 2
- Add Documentation for Requisites
- Add Documentation for Cocoapods auto deployment HOT 2
- Naming of .xcodeproj HOT 4
- Adding external framework dependency HOT 2
- Add Swiftlint HOT 2
- Add circle ci
- Add Codecov HOT 1
- Add sensible danger configurations
- Make framework version customizable HOT 3
- Add documentation for GitHub auto-deployment
- Add documentation for auto-deployment HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftframeworktemplate.