Run grunt build command on Travis CI

Have you made sure to install grunt-cli globally on your Travis node? My Travis CI config looks like: language: node_js node_js: – “0.8” before_install: npm install -g grunt-cli install: npm install before_script: grunt build And my package.json: { … “scripts”: { “test”: “grunt test” }, … } I will explain the flow of steps that … Read more

Is it possible to set up travis to run tests for several languages?

It is not possible yet to have several languages on travis configuration file. On the other hand, all environments run node.js. The following script does the trick: language: ruby rvm: – 2.0.0 before_script: – npm install karma script: – RAILS_ENV=test bundle exec rake –trace db:migrate test – karma start –single-run –browsers PhantomJS test/karma/config/unit.js Help found … Read more

Travis/Jest: TypeError: Cannot assign to read only property ‘Symbol(Symbol.toStringTag)’ of object ‘#’

That is a bug that came with node v11.11. You can downgrade to v11.10 or wait for the fix which facebook has already pushed (jest error in Node version over 11.11). If your problem is TravisCI related then you can set a fixed version which works: node_js: – “11.10.1”

What does “upload-pack: not our ref” mean, when fetching git refs via –tags?

I had the same error: radato$ git submodule update fatal: git upload-pack: not our ref somehash0 fatal: remote error: upload-pack: not our ref somehash0 fatal: Fetched in submodule path ‘dashboard’, but it did not contain somehash0. Direct fetching of that commit failed. So I deinitialized the submodule: radato$ git submodule deinit -f dashboard Cleared directory … Read more

How to fix a permission denied (publickey) error for a git submodule update in the Github Travis CI build?

This can (thankfully) be easily solved by modifying the .gitmodules file on-the-fly on Travis, so that the SSH URL is replaced with the public URL, before initializing submodules. To accomplish this, add the following to .travis.yml: # Handle git submodules yourself git: submodules: false # Use sed to replace the SSH URL with the public … Read more

How to publish artifacts in Travis CI?

GitHub releases step-by-step The method was mentioned at https://stackoverflow.com/a/24100779/895245, and is poorly documented at: https://docs.travis-ci.com/user/deployment/releases/ , so here goes a more detailed step-by-step. It uploads artifacts to GitHub releases https://github.com/<username>/<repo>/releases which exist for every Git tag you push. Get a Personal Access Token under https://github.com/settings/tokens Only enable “public_repo” access for public repositories, “repo” for private. … Read more

Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain

Phil’s answer is correct. And here is how to create .mvn directory with needed jar inside. I found the answer here (https://www.baeldung.com/maven-wrapper) If you have maven and you want to make maven wrapper working, you need to setup maven wrapper: mvn -N io.takari:maven:wrapper It should create .mvn directory and put needed jar in it.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)