travis-ci

Travis.yml ./gradlew : Permission denied

心不动则不痛 提交于 2019-11-26 18:46:43
问题 Using Travis CI for an existing Android project calling $ ./gradlew build connectedCheck I get this error: /home/travis/build.sh: line 45: ./gradlew: Permission denied The command "./gradlew build connectedCheck" failed and exited with 126 during . 回答1: It depends by the exec-permission to your unix gradlew script. It can be fixed using the command: git update-index --chmod=+x gradlew A little desciption to understand the problem. First of all you can check your permissions using: git ls-tree

Error: Local workspace file ('angular.json') could not be found

让人想犯罪 __ 提交于 2019-11-26 18:05:47
I have travis-ci integrated with my GitHub account ( https://github.com/pradeep0601/Angular5-Router-App ). When I updated @angular/cli version from 1.7.4 to 6.0.0-rc.3, the build started failing with an error: Local workspace file ('angular.json') could not be found. Error: Local workspace file ('angular.json') could not be found. at WorkspaceLoader._getProjectWorkspaceFilePath (/home/travis/build/pradeep0601/Angular5-Router-App/node_modules/@angular/cli/models/workspace-loader.js:37:19) at WorkspaceLoader.loadWorkspace (/home/travis/build/pradeep0601/Angular5-Router-App/node_modules/@angular

com.android.builder.testing.ConnectedDevice > hasTests[test(AVD) - 5.0] FAILED

时光怂恿深爱的人放手 提交于 2019-11-26 16:28:14
问题 i have try my best to test my android project with gradle on, but failed. can you help me with it?Thank you. This is my project: https://github.com/SnowdreamFramework/android-log and i provide my error log with the attachment. [0K$ echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a Android 5.0 is a basic Android platform. Do you wish to create a custom hardware profile [no]Created AVD 'test' based on Android 5.0, ARM (armeabi-v7a) processor, with the following

How can I install something on Travis CI without a timeout?

风格不统一 提交于 2019-11-26 14:28:16
问题 I am trying to test a package build on travis-ci.org, but am coming up against a timeout with pip install scipy: Installing collected packages: scipy Running setup.py install for scipy Running command /home/travis/virtualenv/python2.6.9/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Fn2gmJ/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hWDx9L-record/install-record.txt -

Travis CI failed because cannot accept license Constrain Layout

↘锁芯ラ 提交于 2019-11-26 12:26:47
问题 Before i write this question, i already search same question about this, they did export license because still use alpha version of constrain layout. But now android already release stable version of constrain layout. I tried a lot of setup but still failed.. my latest .travis.yml language: android jdk: oraclejdk8 android: components: - platform-tools - tools # to get the new `repository-11.xml` - tools # see https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943) - build

Using secret api keys on travis-ci

眉间皱痕 提交于 2019-11-26 11:55:01
问题 I\'d like to use travis-ci for one of my projects. The project is an API wrapper, so many of the tests rely on the use of secret API keys. To test locally, I just store them as environment variables. What\'s a safe way to use those keys on Travis? 回答1: Travis has a feature to encrypt environment variables ("Encrypting environment variables"). This can be used to protect your secret API keys. I've successfully used this for my Heroku API key. All you have to do is install the travis gem,

Use xcodebuild (Xcode 8) and automatic signing in CI (Travis/Jenkins) environments

ぐ巨炮叔叔 提交于 2019-11-26 10:07:32
问题 With the release of Xcode 8, Apple introduced a new way of managing the signing configuration. Now you have two options Manual and Automatic . According to the WWDC 2016 Session about Code signing (WWDC 2016 - 401 - What\'s new in Xcode app signing), when you select Automatic signing, Xcode is going to: Create signing certificates Create and update App IDs Create and update provisioning profiles But according to what Apple says in that session, the Automatic Signing is going to use

How to run travis-ci locally

房东的猫 提交于 2019-11-26 09:04:50
问题 I\'ve just joined a project, and I\'m new to travis-ci. I\'d rather not have to push every little change to .travis.yml and every little change I make to the source in order to run the build. With jenkins you can download jenkins and run locally. Does travis offer something like this? Note: I\'ve seen the travis-ci cli and downloaded it, but all it seems to do is call their API, which then connects to my github repo, so if I don\'t push, it won\'t matter that I restart the last build. 回答1:

Error: Local workspace file ('angular.json') could not be found

Deadly 提交于 2019-11-26 07:53:29
问题 I have travis-ci integrated with my GitHub account (https://github.com/pradeep0601/Angular5-Router-App). When I updated @angular/cli version from 1.7.4 to 6.0.0-rc.3, the build started failing with an error: Local workspace file (\'angular.json\') could not be found. Error: Local workspace file (\'angular.json\') could not be found. at WorkspaceLoader._getProjectWorkspaceFilePath (/home/travis/build/pradeep0601/Angular5-Router-App/node_modules/@angular/cli/models/workspace-loader.js:37:19) at