Skip to content
Snippets Groups Projects
.travis.yml 1.34 KiB
Newer Older
  • Learn to ignore specific revisions
  • git:
      depth: false
    
    Vicki Pfau's avatar
    Vicki Pfau committed
    cache:
      - ccache
      - directories:
        - $HOME/roms/
    language: cpp # Needed for ccache
    
    env:
      - PYVER=3.5
      - PYVER=3.6
    os:
      - linux
      - osx
    services:
      - docker
    osx_image: xcode8
    
    
    Vicki Pfau's avatar
    Vicki Pfau committed
    matrix:
      include:
    
        - os: linux
          env:
            - CROSS=win64
            - PYVER=3.5
    
    Vicki Pfau's avatar
    Vicki Pfau committed
        - os: linux
    
          env:
            - CROSS=win64
            - PYVER=3.6
    
    before_script:
      - mkdir -p $HOME/roms
    script:
      - >
        if [ "$TRAVIS_OS_NAME" == "linux" ]; then
        docker run
        --env PYVER="$PYVER"
    
    Vicki Pfau's avatar
    Vicki Pfau committed
        --env CROSS="$CROSS"
    
        --env TRAVIS_OS_NAME="$TRAVIS_OS_NAME"
        --env TRAVIS_TAG="$TRAVIS_TAG"
        --env TRAVIS_BRANCH="$TRAVIS_BRANCH"
        --env TRAVIS_PULL_REQUEST="$TRAVIS_PULL_REQUEST"
        --env GOOGLE_APPLICATION_CREDENTIALS_DATA="$GOOGLE_APPLICATION_CREDENTIALS_DATA"
        --volume /home/travis/build/openai/retro:/root/code/retro
        --volume /home/travis/.ccache:/root/.ccache
        --workdir /root/code/retro
    
    Vicki Pfau's avatar
    Vicki Pfau committed
        openai/travis-build
    
        python travis.py;
        fi
      - |
        if [ "$TRAVIS_OS_NAME" == "osx" ]; then
        curl -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
        bash miniconda.sh -b
        export PATH=/usr/local/opt/ccache/libexec:$HOME/miniconda3/bin:$PATH
        hash -r
        conda create -y -q -n venv python=$PYVER pip
        source activate venv
        pip install wheel google-cloud pytest
        python travis.py
        fi