travis-ci

How to get surefire reports form Travis-CI build?

半世苍凉 提交于 2019-12-01 18:10:26
The question says it all really. How can I download or view the surefire-reports generated during a build on Travis? You can just do after_failure: - cat target/surefire-reports/*.txt Having not found a direct way to access the surefire-report files I came up with the this workaround: In .travis.yml I added an after_failure hook: after_failure: print_surefire_reports.sh In the hook print_surefire_reports.sh I put: #!/usr/bin/env sh echo "Current directory is $(pwd)" echo "\n=== SUREFIRE REPORTS ===\n" for F in target/surefire-reports/*.txt do echo $F cat $F echo done I am using python

automated push to a github repo with travis

回眸只為那壹抹淺笑 提交于 2019-12-01 17:57:18
问题 I have a gitub.io repo which hosts my webpage -- the source for that webpage (uncompiled Jade / Sass code) is in a separate public repo. Travis-CI is set up to watch my source repo for changes and run the compile suite, generating the HTML/CSS that will get pushed to the github.io repo. Can I set up Travis to automatically do a push to a github repo I own if the compile passed, without hard-coding my username and password into my .travis.yml file (obviously this is a security concern)? I've

How to write .travis.yml if my project deps on python and nodejs?

我是研究僧i 提交于 2019-12-01 17:04:33
My project includes some python codes and build with grunt.I write .travis.yml like: language: node_js before_install: - pip install Django - npm install -g grunt-cli - npm uninstall grunt # https://github.com/npm/npm/issues/3958 node_js: - "0.10" python: - "2.7" But that failed: * OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Django-1.7.1.dist-info' * It seems like I cannot 'pip install' in a 'node_js' project. Instead of using sudo , pass the --user flag into pip (e.g., pip install --user django ) to install the package in the home directory. This approach

How to write .travis.yml if my project deps on python and nodejs?

拈花ヽ惹草 提交于 2019-12-01 16:10:41
问题 My project includes some python codes and build with grunt.I write .travis.yml like: language: node_js before_install: - pip install Django - npm install -g grunt-cli - npm uninstall grunt # https://github.com/npm/npm/issues/3958 node_js: - "0.10" python: - "2.7" But that failed: * OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/Django-1.7.1.dist-info' * It seems like I cannot 'pip install' in a 'node_js' project. 回答1: Instead of using sudo , pass the --user

Travis CI with C++14 and Linux

元气小坏坏 提交于 2019-12-01 14:57:37
问题 Similar: Travis CI with Clang 3.4 and C++11 How does one get Travis CI to work with C++14? Here is our current .travis.yml file: language: cpp compiler: - gcc - clang os: - linux - osx script: make main Here is our makefile # Factor Pro # Macros CXXFLAGS = -Os -std=c++14 # Rules all::main main: main.cpp g++ -o main $(CXXFLAGS) main.cpp clean: rm -rf *.o main It works on osx , but not linux . 回答1: The default GCC and Clang versions are horribly outdated, and you'll need to install newer

Encrypted key unauthorized for continuous deployment Travis → Heroku

落爺英雄遲暮 提交于 2019-12-01 10:57:55
I'm trying to configure CoinsManager so that the alpha version gets auto-deployed after Travis Continuous Integration. Here is our .travis.yml file: language: node_js node_js: - '0.10' before_install: - make install services: - mongodb deploy: provider: heroku app: coinsmanager api_key: secure: "FjcbJdgcB1IIug3Qf5oFlF5PHW8LYnIUJCSUEz7GI5i6tVvtye1UvqkA12BP+//u3rtPcO3d33rjNY5/qvIRIdJ/wMKACAHdzRa8jWge2dxW7filynF6LVsh5ezwr7Sq/MgNwvqQcRp7eQNsOlBzdZRyQYE0VAa4fAD1+SZPnWQ=" on: all_branches: true after_deploy: - "cd app/client/compass && compass compile && cd -" - "cd app/ && meteor reset" - restart

Encrypted key unauthorized for continuous deployment Travis → Heroku

僤鯓⒐⒋嵵緔 提交于 2019-12-01 09:26:02
问题 I'm trying to configure CoinsManager so that the alpha version gets auto-deployed after Travis Continuous Integration. Here is our .travis.yml file: language: node_js node_js: - '0.10' before_install: - make install services: - mongodb deploy: provider: heroku app: coinsmanager api_key: secure: "FjcbJdgcB1IIug3Qf5oFlF5PHW8LYnIUJCSUEz7GI5i6tVvtye1UvqkA12BP+//u3rtPcO3d33rjNY5/qvIRIdJ/wMKACAHdzRa8jWge2dxW7filynF6LVsh5ezwr7Sq/MgNwvqQcRp7eQNsOlBzdZRyQYE0VAa4fAD1+SZPnWQ=" on: all_branches: true

How to fix Travis-CI [Composer\Exception\NoSslException] with PHP 5.3.3?

微笑、不失礼 提交于 2019-12-01 08:33:26
问题 I have a project that I'm building and testing on travis-ci for 3 primary PHP environments that I deploy into (7.0, 5.5.9, and 5.3.3). This builds and tests perfectly fine in 7.0.8 and 5.5.9, but for 5.3.3 I get this error: [Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not availab le. If you can not enable the openssl extension, you can disable this error , at your own risk, by setting the 'disable-tls' option to true. I know from this

How to build library without sudo?

拟墨画扇 提交于 2019-12-01 06:41:05
I usually build my library ./configure && make && sudo make install . However the Travis docs discourage using sudo http://docs.travis-ci.com/user/workers/container-based-infrastructure/ So I changed the build command to ./configure --prefix=$HOME && make && make install . This worked, however at the next step (building a Python extension) I got an error /usr/bin/ld: cannot find -lprimesieve Any ideas? Do I need to add $HOME/lib to some environment variables, because I changed prefix? My travis config https://github.com/hickford/primesieve-python/blob/travis-ci/.travis.yml Build log with error

How to build library without sudo?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 05:22:35
问题 I usually build my library ./configure && make && sudo make install . However the Travis docs discourage using sudo http://docs.travis-ci.com/user/workers/container-based-infrastructure/ So I changed the build command to ./configure --prefix=$HOME && make && make install . This worked, however at the next step (building a Python extension) I got an error /usr/bin/ld: cannot find -lprimesieve Any ideas? Do I need to add $HOME/lib to some environment variables, because I changed prefix? My