circleci

appspec.yml failed to call scripts

牧云@^-^@ 提交于 2019-12-12 06:24:17
问题 I am trying to setup CI using AWS CodeDeploy and CircleCI. Right now I am stuck at the step where AWS CodeDeploy should copy stuff into EC2 and run scripts. But somehow CircleCI tells me something is wrong. Does anyone know what might be happening? Thanks. the appspec.yml is: version: 0.0 os: linux files: - source: / destination: /home/ubuntu hooks: BeforeInstall: - location: scripts/setup.sh timeout: 3800 runas: root ApplicationStart: - location: scripts/start.sh timeout: 3800 runas: root

Behat tests not running on CircleCI

拜拜、爱过 提交于 2019-12-12 03:55:23
问题 I'm having come trouble getting my tests to run within CircleCI. Locally the tests run fine, as shown on the right side of the screenshot. But in CircleCI, it will load the SuiteContext file and run the Before/AfterSuite methods, but nothing else. What would cause this sort of behavior? Thanks default: autoload: Test/Context suites: default: paths: features: Test/Features contexts: - SettingContext: ~ - LanguageContext: ~ - ActionContext: ~ - FrontendContext: ~ - FileTypeContext: ~ -

CircleCI build on PR

一个人想着一个人 提交于 2019-12-12 03:49:22
问题 I have a CircleCI integration in an open-source project, and I would like to build PRs automatically, as shown in their github integration page: (Step 5, "Your tests passed on CircleCI") For instance, this PR did not display it: https://github.com/nha/boot-uglify/pull/2 and was not built on the feature branch. 回答1: Turns out there is an option in Advanced Settings > Build off PRs 来源: https://stackoverflow.com/questions/42040001/circleci-build-on-pr

Android Emulator is failing on macOS: Could not open GL library libGLESv2.dylib

陌路散爱 提交于 2019-12-11 19:53:35
问题 I am getting the following when launching the android emulator on macOS: #!/bin/bash --login -eo pipefail /usr/local/share/android-sdk/tools/emulator @Pixel_2_API_26 -skin 1080x2066 -memory 2048 -noaudio ^D^Demulator: WARNING: userdata partition is resized from 550 M to 800 M emulator: WARNING: Your GPU drivers may have a bug. Switching to software rendering. EglOsGlLibrary: Could not open GL library libGLESv2.dylib [dlopen(libGLESv2.dylib, 2): image not found] EglOsEglDispatcher: Could not

Use firefox for Selenium in CircleCI 2.0

房东的猫 提交于 2019-12-11 17:30:52
问题 In my CircleCI config.yml file I have the following: docker: - image: circleci/ruby:2.5.3-browsers-legacy In the CircleCI docs it says that by attaching -browsers-legacy to the language it will include Chrome, Firefox, Java 8 and PhantomJS And I also tried adding to the config.yml: - image: selenium/standalone-firefox:3.141.59 But I am still getting the error: Unable to find Mozilla geckodriver. Please download the server from https://github.com/mozilla/geckodriver/releases and place it

Deploying Django app to Heroku via CircleCI: How to migrate database?

佐手、 提交于 2019-12-11 14:09:41
问题 How can I run python manage.py makemigrations and python manage.py migrate automatically when deploying a Django app to Heroku via CircleCI. It seems all commands run local to CircleCI, but not on the deployed application in production. Is there a way? 回答1: python manage.py makemigrations should be running locally, and you may commit the migration files along with the code. Regaridng the migrations, open your Procfile and add this line: release: python manage.py migrate . This will tell

How to reuse anchored entry under already unwrapped anchor?

血红的双手。 提交于 2019-12-11 06:17:09
问题 I am trying to write a CircleCI config that will allow me to reuse both whole list/mapping(?) entries and its properties. Having the following: image_definitions: docker: - &default_localstack_image image: localstack/localstack:0.10.3 environment: KINESIS_LATENCY: 0 defaults_env: &defaults_env environment: PG_PORT: 5432 PG_USER: root I would like to be able to replace: test: &test docker: - image: localstack/localstack:0.10.3 <<: *defaults_env with something like: test: &test docker: -

A git tag doesn't seem to be available after explicitly fetching the tag

丶灬走出姿态 提交于 2019-12-11 05:09:38
问题 If I run git fetch --force origin "refs/tags/release-2017-12-22T15_28_47-05_00" it outputs From github.com:myname/myrepo * tag release-2017-12-22T15_28_47-05_00 -> FETCH_HEAD but then I don't see the branch if I do git tag -l and if I try to check it out with git checkout -q "release-2017-12-22T15_28_47-05_00" then I get an error about it not being found: error: pathspec 'release-2017-12-22T15_28_47-05_00' did not match any file(s) known to git. It does work if I instead execute git fetch -

Running pytest-qt on CircleCI

左心房为你撑大大i 提交于 2019-12-11 02:09:48
问题 I am attempting to run tests which require pytest-qt (for testing PySide2 dialogs) on CircleCI. I am getting the following error: xdpyinfo was not found, X start can not be checked! Please install xdpyinfo! ============================= test session starts ============================== platform linux -- Python 3.6.8, pytest-5.0.0, py-1.8.0, pluggy-0.12.0 -- /home/circleci/project-caveman/venv/bin/python3 cachedir: .pytest_cache PySide2 5.13.0 -- Qt runtime 5.13.0 -- Qt compiled 5.13.0

Circle CI Integration

大城市里の小女人 提交于 2019-12-10 12:36:30
问题 I am basically going mental trying to integrate an Android app with CircleCI. I have the following Version 2.0 config file as per documentation. version: 2 jobs: build: docker: - image: circleci/openjdk:8-jdk working_directory: ~/repo environment: ANDROID_HOME: /usr/local/android-sdk-linux JVM_OPTS: -Xmx3200m TERM: dumb dependencies: pre: - echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-23.0.1,android-23,extra-google-m2repository,extra-google-google_play