travis-ci

java generics and annotations not supported in version 1.3 (travis integration)

别等时光非礼了梦想. 提交于 2019-12-20 09:38:59
问题 I'm trying to integrate my github Java/PHP project with travis-ci environment. This is my travis configuration: language: java jdk: - openjdk7 - oraclejdk7 script: mvn test Below is the output that travis prints: Using worker: bluebox-linux-1.worker.travis-ci.org:travis-linux-9 $ git clone --depth=50 --branch=master git://github.com/tkoomzaaskz/wealthy-laughing-duck.git tkoomzaaskz/wealthy-laughing-duck Cloning into 'tkoomzaaskz/wealthy-laughing-duck'... remote: Counting objects: 458, done.

How to run Tox with Travis-CI

丶灬走出姿态 提交于 2019-12-20 09:29:38
问题 How do you test different Python versions with Tox from within Travis-CI? I have a tox.ini : [tox] envlist = py{27,33,34,35} recreate = True [testenv] basepython = py27: python2.7 py33: python3.3 py34: python3.4 py35: python3.5 deps = -r{toxinidir}/pip-requirements.txt -r{toxinidir}/pip-requirements-test.txt commands = py.test which runs my Python unittests in several Python versions and works perfectly. I want to setup a build in Travis-CI to automatically run this when I push changes to

Suppressing GPG signing for Maven-based continuous integration builds (Travis CI)

感情迁移 提交于 2019-12-20 08:46:36
问题 I'm using Travis-CI to provide continuous integration builds for a few Java open source projects I'm working on. Normally this works smoothly, but I have a problem when the POM specifies GPG signing, e.g. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.4</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> This causes the Travis build to

Different Config Files in GitHub Repo Branch

一个人想着一个人 提交于 2019-12-20 03:23:16
问题 So I have a GitHub repo with a master branch and a staging branch, they both have separate config files for deploying to different places. I was hoping that when I perform a pull request on the staging branch back to master, that I could some how exclude the 2 config files that I want to remain different in both branches. How can I achieve this in the easiest way? A permanent solution would be great, but from what I've read so far it would involve doing a "stash" and a "pop"? Or maybe just

subprocess.Popen: 'OSError: [Errno 13] Permission denied' only on Linux

隐身守侯 提交于 2019-12-20 02:57:04
问题 Code and logs have changed a lot (due to a major rewrite) since the question was asked. When my code (given below) executes on Windows (both my laptop and AppVeyor CI), it does what it's supposed to do. But on Linux (VM on TravisCI), it throws me a permission denied error. Error: $ sudo python3 test.py Testing espeak4py Testing wait4prev Traceback (most recent call last): File "test.py", line 10, in <module> mySpeaker.say('Hello, World!') File "/home/travis/build/sayak-brm/espeak4py/espeak4py

Travis-ci decryption of encrypted files

一个人想着一个人 提交于 2019-12-19 18:27:12
问题 I encrypted my .env file, and I now have a .env.enc file. How does my team decrypt this? I got this response when I encrypted the file, and it is stored in my .travis.yml file openssl aes-256-cbc -K $encrypted_cf94abc85bdc_key -iv $encrypted_cf94abc85bdc_iv -in .env.enc -out .env -d I tried that on the terminal and this I just get: iv undefined I tried decrypting with the travis-cli: travis encrypt-file .env.enc .env -d I just get this: key must be 64 characters long and a valid hex number I

How does Travis CI cache Gradle dependencies?

 ̄綄美尐妖づ 提交于 2019-12-19 10:33:40
问题 In Travis documentation about caching dependencies, it mentions: The cache’s purpose is to make installing language-specific dependencies easy and fast, so everything related to tools like Bundler, pip, Composer, npm, Gradle, Maven, is what should go into the cache. Large files that are quick to install but slow to download do not benefit from caching, as they take as long to download from the cache as from the original source: I am using Gradle in my Java project. It seems what Gradle caches

Travis with Firebase deploy TypeError: this.stream.clearLine is not a function

五迷三道 提交于 2019-12-19 03:41:29
问题 I am trying to build & deploy a NodeJs + Python app with Travis. This is approximately the folder structure (everything belongs to the same repo) main/ ├── angular2-client/ │ ├── dist/ │ ├── node_modules/ │ └── ... ├── django-server/ │ ├── server/ │ ├── manage.py │ └── ... ├── .travis.yml └── requirements.txt and this is the .travis.yml file language: python python: - "3.4" sudo: required before_install: - nvm install node - npm --version install: - cd ./angular2-client - npm install - cd ..

Travis with Firebase deploy TypeError: this.stream.clearLine is not a function

别等时光非礼了梦想. 提交于 2019-12-19 03:41:12
问题 I am trying to build & deploy a NodeJs + Python app with Travis. This is approximately the folder structure (everything belongs to the same repo) main/ ├── angular2-client/ │ ├── dist/ │ ├── node_modules/ │ └── ... ├── django-server/ │ ├── server/ │ ├── manage.py │ └── ... ├── .travis.yml └── requirements.txt and this is the .travis.yml file language: python python: - "3.4" sudo: required before_install: - nvm install node - npm --version install: - cd ./angular2-client - npm install - cd ..

Call GitHub API with Travis to build Tag

左心房为你撑大大i 提交于 2019-12-18 16:12:12
问题 I have created a TravisCI Hook in a GitHub repository that automatically run a build after pushing to the repo. What I would like to add is that if the build succeeds a tag is automatically created. I have found out that there is a way to create tags with the GitHub API http://developer.github.com/v3/git/tags/#create-a-tag-object But how do I control access to my repository? I can't expose my login github credentials in the travis.yml because everyone can read it as it is cointained in the