.travis.yml
language: python
stages:
- build
stage: build
jobs:
include:
- sudo: required
language: minimal
dist: xenial
group: edge
env: RELEASE=xenial
- sudo: required
services: docker
env: RELEASE=trusty
if: NOT env(VERSION) =~ -dev$ AND NOT env(VERSION) =~ ^3\.[789]
- sudo: required
dist: precise
env: RELEASE=precise
if: NOT env(VERSION) =~ -dev$ AND NOT env(VERSION) =~ ^pypy AND NOT env(VERSION) =~ ^3\.[789]
- sudo: required
os: linux-ppc64le
dist: xenial
env:
global:
- VERSION=3.8-dev
# - ALIAS=nightly
install:
- pushd /opt/pyenv/
- sudo git checkout master
- sudo git pull
- popd
- python -m pip install virtualenv
before_script:
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
- 'export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
- 'export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
- 'export ARCH=${ARCH:-$(uname -m)}'
- 'export PACKAGES=${PACKAGES:-pip nose pytest mock wheel}'
- export PYTHON_CONFIGURE_OPTS="--with-wide-unicode --enable-shared --enable-ipv6 --enable-loadable-sqlite-extensions --with-computed-gotos $CONFIGURE_OPTS"
- sudo chown -R $USER $HOME/.cache
- |
if [[ $VERSION = pypy*-dev ]]; then
if [[ -f ~/virtualenv/pypy/bin/activate ]]; then
:
else
curl -O https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/$(lsb_release -rs)/$(uname -m)/pypy2.7-5.8.0.tar.bz2
$(printf %s%s su do) tar xf pypy*.tar.bz2 -C /
fi
source ~/virtualenv/pypy/bin/activate
python --version
fi
- __dots() { while true ; do echo -en . ; sleep 30 ; done } ; __dots &
script: ./bin/compile
after_success: ./bin/archive
after_failure: cat /tmp/python-build.*.log
addons:
apt:
packages:
- openssl
artifacts:
paths:
- $LSB_RELEASE/
target_paths:
- /binaries/$OS_NAME/$LSB_RELEASE/$ARCH
branch:
- default
notifications:
email: false
Build Config
{
"os": [
"linux"
],
"env": {
"global": [
"VERSION=3.8-dev"
]
},
"dist": "trusty",
"sudo": false,
"stage": "build",
"addons": {
"apt": {
"packages": [
"openssl"
]
},
"artifacts": {
"paths": [
"$LSB_RELEASE/"
],
"branch": "default",
"enabled": true,
"target_paths": [
"/binaries/$OS_NAME/$LSB_RELEASE/$ARCH"
]
}
},
"matrix": {
"include": [
{
"env": "RELEASE=xenial",
"dist": "xenial",
"sudo": true,
"group": "edge",
"language": "shell"
},
{
"if": "NOT env(VERSION) =~ -dev$ AND NOT env(VERSION) =~ ^3\\.[789]",
"env": "RELEASE=trusty",
"sudo": true,
"services": [
"docker"
]
},
{
"if": "NOT env(VERSION) =~ -dev$ AND NOT env(VERSION) =~ ^pypy AND NOT env(VERSION) =~ ^3\\.[789]",
"env": "RELEASE=precise",
"dist": "precise",
"sudo": true
},
{
"os": "linux",
"dist": "xenial",
"sudo": true
}
]
},
"script": [
"./bin/compile"
],
"stages": [
{
"name": "build"
}
],
"install": [
"pushd /opt/pyenv/",
"sudo git checkout master",
"sudo git pull",
"popd",
"python -m pip install virtualenv"
],
"language": "python",
"after_failure": [
"cat /tmp/python-build.*.log"
],
"after_success": [
"./bin/archive"
],
"before_script": [
"export INSTALL_DEST=${INSTALL_DEST:-/opt/python}",
"export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}",
"export OS_NAME=${OS_NAME:-$(lsb_release -is | tr \"A-Z\" \"a-z\" || echo \"osx\")}",
"export ARCH=${ARCH:-$(uname -m)}",
"export PACKAGES=${PACKAGES:-pip nose pytest mock wheel}",
"export PYTHON_CONFIGURE_OPTS=\"--with-wide-unicode --enable-shared --enable-ipv6 --enable-loadable-sqlite-extensions --with-computed-gotos $CONFIGURE_OPTS\"",
"sudo chown -R $USER $HOME/.cache",
"if [[ $VERSION = pypy*-dev ]]; then\n if [[ -f ~/virtualenv/pypy/bin/activate ]]; then\n :\n else\n curl -O https://s3.amazonaws.com/travis-python-archives/binaries/ubuntu/$(lsb_release -rs)/$(uname -m)/pypy2.7-5.8.0.tar.bz2\n $(printf %s%s su do) tar xf pypy*.tar.bz2 -C /\n fi\n source ~/virtualenv/pypy/bin/activate\n python --version\nfi\n",
"__dots() { while true ; do echo -en . ; sleep 30 ; done } ; __dots &"
],
"notifications": {
"email": {
"enabled": false
}
}
}