travis-ci
How to deploy to github with file pattern on travis?
Wildcards are supported by now if you enable the file_glob option. This is how I deploy a build .deb file to GitHub releases: before_deploy: – export RELEASE_PKG_FILE=$(ls *.deb) – echo “deploying $RELEASE_PKG_FILE to GitHub releases” deploy: provider: releases api_key: secure: YOUR_ENCRYPTED_API_KEY file_glob: true file: “${RELEASE_PKG_FILE}” on: tags: true Setting up is easy by executing travis … Read more
Travis special requirements for each python version
Travis CI adds an environment variable called $TRAVIS_PYTHON_VERSION that can be referenced in your .travis.yml: python: – 2.6 – 2.7 – 3.2 – 3.3 – pypy install: – if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install importlib unittest2; fi – pip install -r requirements.txt This would cause unittest2 and importlib to be installed only … Read more
How to publish to Github Pages from Travis CI?
Step-by-step example with HTTPS API Token in environment variable Others have mentioned it, but here goes a more detailed procedure. Create a separate repository for the website (optional). This will reduce the likelihood that you overwrite your main repository, and will keep output files from polluting it. Get a Personal Access Token under https://github.com/settings/tokens Only … Read more
Error: TSError: ⨯ Unable to compile TypeScript
I had met same issue. First I remove ts-node and typescript from package.json. then, npm install ts-node –save-dev npm install typescript -g npm install typescript –save-dev
How make travis-ci execute for some branch?
You can try and check if it would work with a whitelist. See “Specify branches to build” You can either white- or blacklist branches that you want to be built: # blacklist branches: except: – legacy – experimental # whitelist branches: only: – master – stable Try and put A in a whitelist syntax in … Read more
Using Travis CI for testing on UNIX shell scripts
Absolutely. I made a simple test here: https://travis-ci.org/soulseekah/test-shunit2-travis My .travis.yml file is: language: bash before_script: – curl -L “https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz” | tar zx script: – bash equality_test.sh Repository: https://github.com/soulseekah/test-shunit2-travis
How do detect if Travis-Ci or not
In general you can detect if you are on Travis-CI by checking the environment variables. You can check either for CI=true or the more specific TRAVIS=true. In PHP you can use the getenv() function to get the value of an environment variable. See the complete list of the environment. You can set even more env … Read more
Remove Travis CI old builds
You can use the travis command line tool Login first using travis login then you can do the following LAST_BUILD_NUMBER=68 for i in $(seq 1 $LAST_BUILD_NUMBER ); do travis logs $i –delete –force ; done This will remove the “logs” so there’s no information aside from the header and any confidential information will no longer … Read more
How to use python 3 as a build script in non-python travis configuration?
If you want to use the container based infrastructure you can make use of the apt addon: addons: apt: sources: – deadsnakes # source required so it finds the package definition below packages: – python3.5 Packages that can be used are listed here Update In order to use dependencies with c-extensions like psycopg2 or pyYAML … Read more