How to set specific node version for Gitlab CI on Windows? - gitlab

I am developing a platform-dependend node application and use Gitlab to build it for Windows, macOS and Linux.
Gitlab supports a image directive for its CI, but this uses docker, hence Linux. Another idea was to use nvm use, but this requires admin privilege.
What is the goto method to specify a node version in my .gitlab-ci.yml?

Related

How do I install a Linux build runner for bitbucket using rust?

I have a CI server in an AWS cloud which hosts out BitBucket.
The runners are on a separate EC2 instance.
The code we are using is Rust.
I installed the runners on a windows EC2 and everything is fine.
I follow the instructions to install the runners on a Linux machine (Ubuntu) and the runners cannot find Cargo.
When I connect to the machine I can run it manually from any directory so it should be viewable by the build runner.
Has anyone come across this issue? I read that I might need to specific the bitness of the system when I install Rust but that did not seem to help :-(
Edit:
I have added the location of Cargo to /etc/environment and to the PATH variable in case the runner could not see it but that has not helped.

What image to use in .gitlab-ci.yml file for running fastlane in gitlab-ci?

I want to integrate my fastlane into gitlab-ci and I do not know what image I will use.
Unfortunately iOS requires the code to be compiled on OSX
If you have access to a mac you can install a GitLab Runner and register it to your GitLab repository.
When setting up this runner you should give it a tag name (something like osx) and when it comes to selecting the executor, you should choose shell(so the jobs will be run directly on your mac machine).
After you have a mac runner up and running, you should also make sure you have all the tools that you normally are using like fastlane, xcode and Android Studio setup.
Now in With this setup you don't need to provide any image to your ci job. But rather give it the tag name you gave your mac runner.

Deploy osx apps on Gitlab CI

is it possible to deploy osx apps using Gitlab CI ? Default Gitlab is running on linux but what I would like to get is build electron app for osx. It is possible only on osx system.
Thanks for help.
Best regards
Gitlab currently offers only shared linux runners for free. Unfortunately, there is no way to build electron app for osx using Gitlab CI.
Gitlab is currently working to make shared macOS runners available. You can track the progress here: https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/5720

TFS 2017 CI with Gulp

I have just set up a TFS 2017 server and am trying to go through the CI tutorial at https://learn.microsoft.com/en-us/vsts/build-release/apps/nodejs/build-gulp?tabs=vsts but am having trouble on the Gulp task. I am getting the error "Not found node: null". I am using an ubuntu agent with the most recent versions of node, npm, and gulp installed. All the tasks are configured exactly as described in the tutorial.
The error usually means you have an environment issue , such as node couldn't captured by TFS build agent.
For the Default agent queue:
VSTS: Select Hosted VS2017. This is how you can use our pool of agents that have the software you need to build your app.
TFS: Select a queue that includes a Windows build agent.
Source Link
If you are working with linux build agent, you need to use windows build agent instead of ubuntu(linux build) agent.
If you are working with windows agent, make sure the node, npm, and gulp installed before TFS build agent configured, otherwise the new capability will not captured.
You need to reconfigure the build agent or restart VSO agent service. Besides make sure your working directory of Gulp task is getting set properly.
I ended up uninstalling and reinstalling nodejs and npm. I believe the problem was that TFS did not sense the node.js and npm capabilities because I originally installed them using nvm, so the second time around I installed using apt packages and everything worked fine.

How to configure latest nodejs in OpenShift?

Today OpenShift supports nodejs version 4, my application in on 6.9.4 LTS.
Is it possible to override default settings and install latest nodejs in OpenShift cartridge?
I am aware about this custom cartridge, my question is on how we could install latest nodejs?
As mentioned this docuentation about Marker" you can specify your NodeJS version by creating a file named NODEJS_VERSION and put your version you needed inside it.
Of course you have to clone it first via git on address specified on your Application setting (called "Source Code" on upper right corner).
git push it would trigger a build and deploy

Resources