Node builder stops working on IBM travis - travis-ci

We have had our node project synced with the IBM version of Travis (https://travis.ibm.com/) for CI but it now refuses to do the build with the following error message, thoughts?
Starting with io.js 3 and Node.js 4, building native extensions requires C++11-compatible compiler, which seems unavailable on this VM. Please read https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements.
when adding the requirements as listed in the url, I get the following errors
Disallowing sources: ubuntu-toolchain-r-test

the following code solved the issue:
language: node_js
node_js:
- "5.4.1"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-4.8

Related

I am trying to use a slider component in my angular project i have ran the ng add #angular/material still the following error

ERROR in The target entry-point "#angular/material/slider" has missing dependencies:
- #angular/cdk/a11y
- #angular/cdk/bidi
- #angular/cdk/coercion
- #angular/cdk/keycodes
- #angular/cdk/platform
Try removing your node_modules/ directory and running npm install. maybe #angular/cdk is not installed properly

Appium) Finishing setting up optional dependencies

First of all, below is required information.
OS: macOS Mojave 10.14.2
Node: 10.13.0
AndroidStudio: 3.1.4
When I run appium doctor, I'am getting two optional dependencies are missing.
1. `opencv4nodejs`
2. `bundletool.jar`
If I try to install opencv4nodejs, but I got warning:
opencv4nodejs#4.14.0 has no binaries
(It seems like auto build failed)
And I have no idea how to add export bundletool.jar as PATH.
I just ran into this myself. Installing opencv4nodejs was pretty easy - for that, I used:
npm -g install opencv4nodejs
There may have been dependencies of 'opencv4nodejs' that I had to install - I can't remember; that may have required me to install 'make' with brew install make
The hard one was the bundletool.jar - here are the steps I followed for that:
Searched for 'bundletool.jar' and found a place to download it from Google - I got 'bundletool-all-0.8.0.jar' from https://github.com/google/bundletool/releases
I renamed this file to just 'bundletool.jar' and placed in my Android SDK folder, under its own sub-folder called 'bundle-tool' - full path: /Users/{USER}/Library/Developer/Android/sdk/bundle-tool
I had to make the bundletool.jar executable with:
chmod +x bundletool.jar
Added the 'bundle-tool' folder to Path with the following addition in my ~/.bashrc file:
PATH="$PATH:$ANDROID_HOME/bundle-tool"
Now running which 'bundletool.jar' is happy and finds it in the 'bundle-tool' folder I created (see step 2)
Running 'appium-doctor' is now satisfied - and doesn't report any missing dependencies.
Hope that helps.
2019-10-31 update:
With MacOS Catalina (specifically 10.15.1) - I ran into a problem with installing opencv4nodejs using the npm command shown above. Opencv4nodejs wants to be built - but using C++ 11 features (from what I read) and has a problem with constexpr on MacOS. So, I first installed OpenCV with Brew - using brew install opencv#4 and then had to set the environment variable to not autobuild OpenCV with export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
Then I was able to install opencv4nodejs with the npm command shown above - and appium-doctor shows that its dependencies are in place.

TravisCI - ERR : Package flute_music_player requires Flutter SDK version ^0.1.2 but the current SDK is 0.0.0-unknown

I am new travis and started working on it with flutter.
I am using flute_music_player plugin for my music player app.
Now app is working/building fine locally on my machine but I cant build it on Travis
Here is what I get
$ ./flutter/bin/flutter test
Running "flutter packages get" in tumultus...
Package flute_music_player requires Flutter SDK version ^0.1.2 but the current SDK is 0.0.0-unknown.
---- Log transcript ----
.
.
.
.
---- End log transcript ----
pub get failed (1)
The command "./flutter/bin/flutter test" exited with 1.
store build cache
nothing changed, not updating cache
Done. Your build exited with 1.
Here is the link to my complete Job log.
And my travis.yml is :
os:
- linux
sudo: false
addons:
apt:
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
sources:
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
packages:
- libstdc++6
- fonts-droid
before_script:
- git clone https://github.com/flutter/flutter.git -b alpha --depth 1
- ./flutter/bin/flutter doctor
script:
- ./flutter/bin/flutter test
cache:
directories:
- $HOME/.pub-cache
My complete project can be found on github here
Actually I have copied most of the code from here and I tried to run his project on travis but same error on log.
Is there anywhere I am lacking, please help.
Thanks for any help or suggestions in advance.
Alright the Issue was with plugin version not actually Travis.

Travis-ci command "./gradlew build" exited with 1

I am unable to build my Android application with Travis-ci. It keeps failing with:
Travis-ci command "./gradlew build" exited with 1.
I have no idea what's causing this, and Travis-ci has no information on how to fix it!
Please advise,
Igor
For anyone who is interested, I used the following android components section in my travis.yml file to solve the problem:
android:
components:
# Update Android SDK Tools
- tools
- build-tools-23.0.1
- android-23
# Support library
- extra-android-support
- extra-android-m2repository
Also, my script section has the following:
script:
- chmod +x ./gradlew
Seems to work now!
hi i also have the same issue but the above solution was not working in my case.But if fix it by giving
before_install:
- chmod +x gradlew
After applying chmode on before_install i have resolved the issue.
Complete .travis.yml
language: android
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - platform-tools
# - tools
# The BuildTools version used by your project
- build-tools-25.0.0
# The SDK version used to compile your project
- android-25
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-22
- sys-img-armeabi-v7a-android-17
before_install:
- chmod +x gradlew
I hope this will help anyone who fail to get the solution from the above answer.
I had to set the jdk in the second line to 8 and it works:
language: android
jdk: oraclejdk8
android:
...

Dart editor can't retrieve dependencies with Pub

I am trying to retrieve the needed dependencies for my newest project that I was going to try out Angular Dart with but every time I try to retrieve the dependencies like angular and web components packages, I get and error. The message in the editor console is:
"Pub get failed, [69] Resolving dependencies...
Connection closed before full header was received
** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **"
I did run it again a few times to see if that would fix it and it did not, it only made the same message again.
I am using dart sdk version 1.9.1 with dart editor build 44672
I have already tried pub cache repair on the cmd and it didn't help.
This is my pubspec.yaml file:
name: angulardart
version: 0.0.1
description: An absolute bare-bones web app.
environment:
sdk: '>=1.0.0 <2.0.0'
dependencies:
angular: '1.1.0'
browser: '>=0.10.0+2 <0.11.0'
web_components: '>=0.10.0+2 <0.11.0'
transformers:
angular
Anything would be helpful.
Edit
I have tried running pub get --trace and it did not work
I have also tried removing the constraints and running just any version of my dependencies. It still returns the same warning and issue:
"Pub get failed, [69] Resolving dependencies...
Connection closed before full header was received
** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **"
My pubspec.yaml for this try is:
name: angulardart
version: 0.0.1
description: An absolute bare-bones web app.
environment:
sdk: '>=1.0.0 <2.0.0'
dependencies:
angular: any
browser: any
web_components: any
transformer:
angular
The issues seems to be an error in the latest build of dart sdk 1.9.1 and I have submitted an issue with the developers in google code.
issue link: http://dartbug.com/23004

Resources