travis-ci
How to reproduce a travis-ci build environment for debugging
For container-based builds, there are now instructions on how to setup a docker image locally. Unfortunately, quite a few steps are still manual. Here are the commands you need to get it up and running: # change the image according to the language chosen in .travis.yml $ docker run -it -u travis quay.io/travisci/travis-jvm /bin/bash # … Read more
How to find the current git branch in detached HEAD state
A more porcelain way: git log -n 1 –pretty=%d HEAD # or equivalently: git show -s –pretty=%d HEAD The refs will be listed in the format (HEAD, master) – you’ll have to parse it a little bit if you intend to use this in scripts rather than for human consumption. You could also implement it … Read more
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No “exports” main resolved in /app/node_modules/@babel/helper-compilation-targets/package.json
Using npm update fixed the same error for me.
How do I get Travis’ build working directory in .travis.yml?
You probably want $TRAVIS_BUILD_DIR, which is the directory we clone the repository to and cd into afterwards, before running your tests.
How do you remove a Github repository for Travis CI tests?
Yes! Log in to Travis CI (travis-ci.org) under your account. Then check on the left sidebar. You should see a My repositories label followed by a plus sign (i.e. +). Click on that plus sign (i.e. +). It will lead you to a page listing all your Github repositories with an on/off toggle beside each … Read more
Use xcodebuild (Xcode 8) and automatic signing in CI (Travis/Jenkins) environments
I basically run into the same issue using Jenkins CI and the Xcode Plugin. I ended up doing the build and codesigning stuff myself using xcodebuild. 0. Prerequisites In order to get the following steps done successfully, you need to have installed the necessary provisioning profiles and certificates. That means your code signing should already … Read more
How to configure Travis-CI to build pull requests & merges to master w/o redundancy
I eventually found another GH issue (#2111) which gave me the idea to try enabling both PRs & pushes, but with a whitelist to restrict pushes to a specific branch. This seems to satisfy the criteria for my workflow. Here’s what I did: Enable both PRs & branch pushes in the Travis settings for the … Read more
The bundle UITests couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle
I was able to reproduce this issue with the project generated by Xcode 10.1. I used Swift 4.2 and CocoaPods 1.10.0 as a dependency manager. I had the following Podfile: # Uncomment the next line to define a global platform for your project platform :ios, ‘10.0’ target ‘MyApp’ do # Comment the next line if … Read more