travis-ci

Travis: how to know android sdk/ndk path?

ぐ巨炮叔叔 提交于 2019-12-12 03:02:32
问题 My android project is built with Ant and i have to edit ant.properties manually file to pass sdk.path variable pointing to android sdk directory. i'm going to change it to get sdk path from environment variable to make build possible on Travis CI. What is android sdk variable for this? Also i have some jni code to be built with android ndk, so the similar question - what is env variable for android ndk on Travis? 回答1: Don't use the Travis's Android support; it uses the old 'android' CLI

Travis fails to build Android project, no local.properties

邮差的信 提交于 2019-12-12 02:29:23
问题 Here is the thing. I've built my project on the Travis CI several times, but got the same problem every time. The error log: What went wrong: A problem occurred evaluating root project 'LiteReader'. /home/travis/build/Mindjet/LiteReader/local.properties (No such file or directory) It's true that the project I uploaded has no local.properties , I've excluded it because it contains information specific to local configuration. It's my .travis.yml language: android cache: bundler android:

Track error in Travis CI

让人想犯罪 __ 提交于 2019-12-12 00:23:30
问题 I have Symfony 2.7 application that functionally tested. In local environment, it'easy to track error since I can see the log on app/logs directory. But in Travis CI I don't know what to do while my functional test is just shows these kind of lines: 1) MyApp\Bundle\SomeBundle\Tests\Controller\SomeControllerTest::testIndexAction Failed asserting that 500 matches expected 200. So, how to find out what coused the error in Travis CI ?? 来源: https://stackoverflow.com/questions/33164429/track-error

Using Travis to deploy to GitHub and build Tag

天大地大妈咪最大 提交于 2019-12-11 20:57:45
问题 I am struggling for some time on how to use Travis-CI to build and deploy a tag to GitHub. I find some information about that on this question, but it is not very clear and it is also not working for me. I created a new Release version 0.0.0 on gitHub and I am using Scala with Play Framework and my .travis.yml file is as follows: language: scala scala: - 2.10.4 jdk: - openjdk7 services: - postgresql env: - PLAY_VERSION=2.0.2 DATABASE_USER=postgres DATABASE_PWD='' DATABASE_URL=jdbc:postgresql

Error: Required package curl not found. Please run: install.packages('curl') Execution halted on Travis CI

﹥>﹥吖頭↗ 提交于 2019-12-11 17:26:13
问题 An R package works fine (and passes CRAN checks), but when Travis CI runs unit tests it errors with Error: Required package curl not found. Please run: install.packages('curl') Execution halted This seems to be an issue particular to Ubuntu. I can see here that running sudo apt-get install libcurl4-openssl-dev can fix the issue. The trouble is I don't have access to the Ubuntu console (as Travis CI does everything after I push to git) - can I place this code somewhere? E.g. can it go in

How to make TravisCI run flow/test/lint in parallel?

前提是你 提交于 2019-12-11 16:50:12
问题 In my .travis.yml I have this. script: - yarn lint - yarn flow - yarn test --runInBand I was wondering is there a way to get them to run in parallel? 回答1: There's few suggestions in Travis docs you could use, i.e. split your build into multiple jobs: https://docs.travis-ci.com/user/speeding-up-the-build/ Another thing you could do is to employ GNU parallel: addons: apt_packages: - parallel script: - parallel --gnu --keep-order ::: 'yarn lint' 'yarn flow' 'yarn test --runInBand' The GNU

Travis - Executing bower in sh script fails

…衆ロ難τιáo~ 提交于 2019-12-11 15:39:47
问题 I try to execute bower commands in a sh script that is run in the after-success phase o a travis build. I installed bower in the install phase: install: - npm install -g bower [...] after_success: - if [ ${TRAVIS_PULL_REQUEST} = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then ./my-script.sh; fi Unfortunately, if I call bower in the sh script it produces the following output: ./my-script.sh: line 30: ./node_modules/.bin/bower: No such file or directory I do not know how to proceed to fix

Why won't Travis CI run the CodeClimate script for my Node app?

二次信任 提交于 2019-12-11 12:38:40
问题 I have followed the instructions to add CodeClimate to my .travis.yml file: language: node_js script: - gulp - npm test after_script: - codeclimate < coverage/**/lcov.info addons: code_climate: repo_token: [ my token ] Everything in my build runs without error, except the codeclimate script at the end: [0K$ codeclimate < coverage/**/lcov.info /home/travis/build.sh: line 41: codeclimate: command not found What am I missing? 回答1: I added my CODECLIMATE_REPO_TOKEN to my Travis-CI > Settings >

travis secure env variables not used in tox

为君一笑 提交于 2019-12-11 12:35:33
问题 I can see in my travis build log that env variables are exported correctly : Setting environment variables from .travis.yml $ export K_API_KEY=[secure] $ export K_PRIVATE_KEY=[secure] $ export TOXENV=py27 However they aren't picked in my tests which use a basic config.py file that just should get the env variables this way ( API_KEY = os.environ['K_API_KEY'] ), see relevant travis log: $ source ~/virtualenv/python2.7/bin/activate $ python --version Python 2.7.9 $ pip --version pip 6.0.7 from

Travis CI no output in after success script

大城市里の小女人 提交于 2019-12-11 11:34:47
问题 I have a public Travis CI build for this repository: https://github.com/blacksonic/boar The problem is that i use a node js script in the after_success part and it appears that it runs it but has no output although it has a single line of console.log 回答1: I did some tests on a sample project I have and it seems to work for me. One thing I'm wondering is if you expanded the logs of the after_success step by clicking on the little triangle in the left margin of the log window. Here is a picture