Travis-CI test on multiple iOS SDKs - cocoa-touch

I'm trying to test a framework on multiple iOS SDKs to make sure it's working on all. But I'm realizing that not all SDKs are available on all of the travis-ci osx_image. For example xcode7 only has iphonesimulator9.0.
Is there a way to specify an osx_image in a matrix? This is what my file looks like right now:
language: objective-c
osx_image: xcode7
env:
matrix:
- SDK=iphonesimulator8.1
- SDK=iphonesimulator8.2
- SDK=iphonesimulator8.3
- SDK=iphonesimulator8.4
- SDK=iphonesimulator9.0
script:
- xctool clean test -project KGNColor.xcodeproj -scheme KGNColor -sdk $SDK

Are you looking for something like this?
https://github.com/realm/jazzy/blob/master/.travis.yml#L12-L17
matrix:
include:
- osx_image: xcode6.4
env: TRAVIS_SWIFT_VERSION=1.2
- osx_image: xcode7.1
env: TRAVIS_SWIFT_VERSION=2.1
The docs for Travis are a little sparse, but I saw this a while back on their twitter feed. https://twitter.com/travisci/status/644930409730580480

Related

CircleCI is triggering slack notification before my Cypress tests run

I'm totally new to testing, CircleCI, and software engineering generally. I put in a big shift today to try and write a simple Cypress test, use CircleCI to run it every hour, and post to Slack whether it was successful.
The first two I've managed, but integration with Slack has proven more difficult than I imagined. I suspect it's because I'm getting the config.yml wrong. Here's the code.
version: 2.1
orbs:
node: circleci/node#4.5.1
cypress: cypress-io/cypress#1.28.0
slack: circleci/slack#4.4.2
jobs:
notify:
executor:
name: node/default
steps:
- slack/notify:
channel: general
event: fail
template: basic_fail_1
mentions: '#Jac'
- slack/notify:
channel: general
event: pass
template: success_tagged_deploy_1
mentions: '#Jac'
workflows:
version: 2
commit-workflow:
jobs:
- cypress/run:
record: true
store_artifacts: true
- notify:
context: slack-secrets
thirty-min-workflow:
triggers:
- schedule:
cron: "0,30 * * * *"
filters:
branches:
only:
- main
jobs:
- cypress/run
- notify:
context: slack-secrets
The tests are running fine, as scheduled, and a notification is pushing to Slack, but the notification triggers as soon as the build starts and is not dependent on the outcome of the tests.
I've racked my brain on this final point for hours, so I'm hoping it's an easy fix!
I managed to figure this out. Fairly simple in the end. I added a post-steps property beneath cypress/run, which will run after the tests. By placing slack/notify beneath post-steps, it successfully ran after my tests and reflected the result.
Here's the config.yml file.
version: 2.1
orbs:
node: circleci/node#4.5.1
cypress: cypress-io/cypress#1.28.0
slack: circleci/slack#4.4.2
workflows:
version: 2
commit-workflow:
jobs:
- cypress/run:
post-steps:
- slack/notify:
channel: general
event: fail
template: basic_fail_1
mentions: '#Jack'
You can also add a when attribute to the cypress job and check for on_success value, if the job is successful then trigger slack notify job - for more help - https://circleci.com/docs/2.0/configuration-reference/#the-when-attribute

How add Bitbucket artifact in Spinnaker?

I was watching a demo https://www.youtube.com/watch?v=Lyv1qTet-mY on the official Armory youtube channel and found an example of how to add different types of artifacts:
but in my case when I open the same menu there are only 3 types of artifacts:
Am I missing something or it is a bug?
Each artifact shuould be enabled using hal.
See documentation - https://www.spinnaker.io/reference/halyard/commands/#hal-config-artifact

what the difference between 'devtool build-image <image>' and 'bitbake <image>'

what the difference between 'devtool build-image ' and 'bitbake '
I'm working with rocko branch. I use the regular way to build image via:
bitbake core-image-full-cmdline
All works fine!
But now I'm trying to work with devtool tool and then I need to use another way to build the core image:
devtool build-image core-image-full-cmdline
So, what's the difference?

How to debug Haxe using IntelliJ IDEA?

I'm trying to debug a Haxe application with cpp target using IntelliJ IDEA.
Every time i got same error while trying to run debug on it:
"You can debug only flash or HXCPP targets"
I have a basic HelloWorld project setup with the Haxe compiler and the C++ target (setup).
I'm using latest plugin for Haxe (0.9.10) and hxcpp-debugger with old protocol version (as mentioned in haxe plugin description). Tried this on IDEA14, 15 & 2016.
All guides that I found to make it work looks outdated.
the closest i found is this video https://www.youtube.com/watch?v=6JjgOrEXcQc - it uses openfl, but if you look at the logging window, it outputs a command : haxelib run hxcpp Build.xml haxe -Ddebug -DHXCPP -Dcpp -Ddebug -Ddesktop -Dhaxe_208 -Dhaxe_209 -Dhaxe_210 -Dhxcpp -Dnme -Dnme_install_tool -Dsys -Dtrue -Dwindows. You'd have to make your build run that same command if you're not using openfl to build.
The code must also create a debug socket server somewhere in your main method:
new DebugSocket("127.0.0.1", 65333, true)

Luxe - "Type not found : UserConfigDef" after updating

I've just updated Haxe, Luxe, Hxcpp, etc. on Windows after not using them for a while, and now none of my projects will compile, not even the "empty" sample. I get the following in cmd:
C:\GAMEDEV\empty>haxelib run flow run
flow / 1.0.0-alpha.2 (node.js v0.12.7)
flow / target is windows ( arch 32 )
flow / haxe version 3.3.0
flow / build - empty 1.0.0 for windows
flow / build - running haxe ...
C:\HaxeToolkit\haxe\lib\snow\git\snow/types/Types.hx:72: characters 25-38 : Type
not found : UserConfigDef
C:\GAMEDEV\empty>
Same error when building from Sublime package. Is it possible that I've broken something? Should I attempt to completely reinstall?
It seems that Luxe is not compatible with Haxe 3.3.0-rc1 yet - there is an open issue about it on GitHub. Try downgrading to Haxe 3.2.1.
You may also need to downgrade hxcpp to 3.2.205 if you run into any cpp compilation issues.