travis-ci

travis go error 'The command “eval go get -t -v ./…” failed'

♀尐吖头ヾ 提交于 2020-01-03 14:18:18
问题 I have a pretty straightforward setup.. - a Travis.yml file : https://github.com/openassistive/OpenATFrontEnd/blob/master/.travis.yml which has this line: before_script: - go get -u -v github.com/spf13/hugo but it fails - with The command "eval go get -t -v ./..." failed. Retrying, 2 of 3. (https://travis-ci.org/openassistive/OpenATFrontEnd/builds/166105574) I can't figure it out. I see the language is set correctly - and looking at other SO posts the version number is correct. Is there a

travis go error 'The command “eval go get -t -v ./…” failed'

耗尽温柔 提交于 2020-01-03 14:17:26
问题 I have a pretty straightforward setup.. - a Travis.yml file : https://github.com/openassistive/OpenATFrontEnd/blob/master/.travis.yml which has this line: before_script: - go get -u -v github.com/spf13/hugo but it fails - with The command "eval go get -t -v ./..." failed. Retrying, 2 of 3. (https://travis-ci.org/openassistive/OpenATFrontEnd/builds/166105574) I can't figure it out. I see the language is set correctly - and looking at other SO posts the version number is correct. Is there a

Travis CI/Pro: CIDR/IP Range?

此生再无相见时 提交于 2020-01-03 14:04:39
问题 We are using Travis Pro and we have some tests against Redshift. Is there a CIDR/IP range for Travis VMs that we can create a security rule for in Redshift? Obviously we won't open Redshift for any incoming IP... 回答1: This used to be not possible but with Travis' introduction of their new container-based infrastructure, they now publish the IP ranges of their machines. You can find them here: https://docs.travis-ci.com/user/ip-addresses/ For Travis Pro, you'd need to take the IP range listed

How do I use python-openbabel in Travis CI?

五迷三道 提交于 2020-01-03 12:07:50
问题 I use Travis CI as part of a Toxicology mapping project. For this project I require python-openbabel as a dependency. As such, I have added the apt-get installer to the .travis.yml file, shown below ( comments removed ). language: python python: - "2.7" before_install: - sudo apt-get update -qq - sudo apt-get install python-openbabel install: "pip install -r requirements.txt" script: nosetests tox.py However, all these attempts failed with the error message Error: SWIG failed. Is Open Babel

Different configs in each git branch

非 Y 不嫁゛ 提交于 2020-01-02 23:47:10
问题 I have two git branches: dev and master I'm using Travis CI for builds and testing and need to have different .travis.yml and config.yml.enc (encrypted config file) for each branch/environment. How do I merge changes from dev->master without merging the .travis.yml and config.yml.enc files? 回答1: You have multiple options here (on master branch): You can either run: git merge --no-commit dev git checkout .travis.yml git checkout config.yml.end git commit -m "merge dev into master" This will

Travis configuration of phpcs for only current commit files

China☆狼群 提交于 2020-01-02 20:08:51
问题 I am configuring phpcs in Travis. In order to check PHP code standard on commit push with travis CI. I am using following script script: - phpcs --standard=PSR2 $(find ./ -name '*.php') But this script checks each .php file. I need Travis to check only the current committed files. Does someone has any solution for this case? Thanks in advance. 回答1: What you could try is the following: get last commit id: (How to get the last commit ID of a remote repo using curl-like command?) git log -

Sample .travis for Django with MySQL tests

本秂侑毒 提交于 2020-01-02 13:57:45
问题 Need a .travis sample yaml file for unit testing mysql queries on Django. 回答1: This is a sample .travis.yaml for Django unit testing with MySQL integration. language: python python: # - "2.6" - "2.7" services: mysql env: # - DJANGO=1.2.7 # - DJANGO=1.3.1 - DJANGO=1.4.3 DJANGO_SETTINGS_MODULE="mysite.travis_settings" install: - pip install -q Django==$DJANGO --use-mirrors - pip install pep8 --use-mirrors - pip install mysql-python --use-mirrors # - pip install https://github.com/dcramer

Sample .travis for Django with MySQL tests

送分小仙女□ 提交于 2020-01-02 13:57:09
问题 Need a .travis sample yaml file for unit testing mysql queries on Django. 回答1: This is a sample .travis.yaml for Django unit testing with MySQL integration. language: python python: # - "2.6" - "2.7" services: mysql env: # - DJANGO=1.2.7 # - DJANGO=1.3.1 - DJANGO=1.4.3 DJANGO_SETTINGS_MODULE="mysite.travis_settings" install: - pip install -q Django==$DJANGO --use-mirrors - pip install pep8 --use-mirrors - pip install mysql-python --use-mirrors # - pip install https://github.com/dcramer

Installing Qt5 for Travis-CI with apt addon

时间秒杀一切 提交于 2020-01-02 06:19:09
问题 How to install Qt5 package on Travis-CI docker infrastructure? I want to do this through apt addon, because it's much faster than virtual machines that work with sudo . I've checked the apt-whitelist and the apt-source-whitelist. I'm unsure what combination will get me a valid install of Qt5. I've tried manually building Qt5 but it's much too large and it won't complete. Here is my .travis.yml: language: cpp compiler: - clang - gcc os: - linux - osx env: global: - BOOST_VERSION="1.59.0" -

Install package on Travis-ci with sudo:false [closed]

折月煮酒 提交于 2020-01-02 05:44:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . How can I Iinstall a package on Travis-ci with sudo:false in travis.yml ? I have my travis.yml : sudo: false install: - wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.4_amd64.deb - sudo dpkg -i libicu52_52.1-3ubuntu0.4_amd64.deb I have an error : sudo: must be setuid root The