FAQ Database Discussion Community


Why doesn't a command that works inside a docker container work from outside via docker run?

linux,npm,docker,circleci,linux-containers
I have a container called my_container when I run docker run -i -t my_container I can then run npm --version and I get 2.7.4. However when I try to run the same command from outside the container using docker run --workdir=/home/ubuntu/www my_container npm --version I get an error message: Unable...

Is it possible to install npm package only if it has not been already installed?

node.js,bash,npm,circleci
Is it possible to install npm package only if it has not been already installed? I need this to speed up test on CircleCI, but when I run npm install [email protected] etc. it always downloads things and installs them from scracth, however, node_modules folder with all modules is already present...

Cannot run elastic search in circleci to make my rspec for elasticsearch to pass?

ruby-on-rails-3,github,rspec,elasticsearch,circleci
i have configured my project in github with circleci. I am using searchkick for elastic search. my code to reindex looks like this: IN spec_helper.rb RSpec.configure do |config| .... config.before :each do Location.reindex end ... end My app/models/location.rb looks like this class Location < ActiveRecord::Base ... searchkick word_start: [:location_name], autocomplete:...

Robolectric in CI environment

android,robolectric,android-testing,circleci
I'm running into an issue where my robolectric tests pass in my terminal with: ./gradlew test and the same command, properly configured with all the tools on circleci gives me this error: java.lang.RuntimeException: java.lang.IllegalArgumentException: maxSize <= 0 at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:238) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:185) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54) at...

CircleCI Heroku Git subtree testing conundrum

ruby-on-rails,ruby,heroku,circleci
I am working on an project which runs a Rails backend and a Angularjs web app on the front end. Both the apps are in a main project folder as subdirectories to keep the two in check and I have been using the git subtree push to deploy the Rails...

calabash-ios in CircleCI how to find App Bundle Path

cucumber,calabash,calabash-ios,circleci
I am trying to run calabash-ios in CircleCI. I am getting the following error. Is there a way to find out the path or file location that should be used? Error message is attached below. Error... Unable to find APP_BUNDLE_PATH. Cannot find a built app that is linked with calabash.framework...

CircleCI gems caching

ruby-on-rails,gem,bundler,circleci
Is it possible to cache gems, so that bundle install will not install bunch of gems for every build? This takes 5 minutes on every build, that is too much. I've added this to the circle.yml config: dependencies: cache_directories: - "/home/ubuntu/.rvm/gems/ruby-2.1.2/gems/" This is the common directory which is provided by...

How to automate karma unit tests with continuous integration

node.js,unit-testing,continuous-integration,karma-runner,circleci
Currently we run our karma/jasmine unit tests a gulp task: gulp test We are trying to figure out how to get circleci to run our tests automatically. I tried adding gulp test under the test: section of the circle.yml file but I get gulp: command not found. But I get...

Can I use CircleCI with other OS than Ubuntu?

continuous-integration,circleci
Is it possible to use CircleCI with other OS than Ubuntu? I can't find an answer in the documentation. Particularly I would like to use Debian 7.8....

How to make calabash-ios tests run within CircleCI?

ruby,cucumber,calabash,calabash-ios,circleci
How can you run calabash-ios tests within CircleCI? This is what I have tried: machine: xcode: version: "6.3.1" dependencies: override: - sudo gem install calabash-cucumber - sudo gem install cocoapods test: overrride: - pod setup - pod install - calabash-ios gen - cucumber And after installing calabash, CircleCI does not...

How to Install Google Play Services GMS SDK on CircleCI

android,linux,gradle,android-gradle,circleci
I am using a CircleCI server to build and test and Android application and have trouble installing the Android SDK for Google Play Services (including GMS services) on the server. My circle.yml file is: environment: ANDROID_HOME: /usr/local/android-sdk-linux dependencies: pre: - echo y | sudo /usr/local/android-sdk-linux/tools/android update sdk --no-ui --all --filter...

On CircleCI, how can I trigger one build after another, but only if the first is green

circleci
I've managed to create a CircleCI build that triggers a subsequent build using their API using curl. I've added this to my circle.yml: test: override: - mvn test -s settings.xml - mvn deploy -Prun-its -s settings.xml - curl -v -X POST https://circleci.com/api/v1/project/alexec/docker-maven-plugin/tree/master?circle-token=$CIRCLE_TOKEN How do I trigger only if all of...

circleci deployment to heroku failed on git push

git,heroku,circleci
I just set up a new project to deploy to heroku from circleci. I have my build script as follows: git push [email protected]:socialjusticebingo.git $CIRCLE_SHA1:refs/heads/master In the console from my circleci build I see the following: remote: Verifying deploy... done. To [email protected]:socialjusticebingo.git ! [remote rejected] ca5c72a28f7ca9c793becd122e6bc73bf8f34b44 -> master (missing necessary objects)...