mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Update Travis caching to speed up builds (#871)
This commit is contained in:
parent
0471402183
commit
aae55aa193
1 changed files with 20 additions and 14 deletions
34
.travis.yml
34
.travis.yml
|
@ -3,7 +3,9 @@ os: linux
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
pip: true
|
||||||
|
directories:
|
||||||
|
- $HOME/virtualenv
|
||||||
|
|
||||||
git:
|
git:
|
||||||
depth: false
|
depth: false
|
||||||
|
@ -28,6 +30,7 @@ aliases:
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.pyenv/versions
|
- $HOME/.pyenv/versions
|
||||||
|
- $HOME/Library/Caches/pypoetry
|
||||||
before_install:
|
before_install:
|
||||||
- eval "$(pyenv init -)"
|
- eval "$(pyenv init -)"
|
||||||
- pyenv install -s $JRNL_PYTHON_VERSION
|
- pyenv install -s $JRNL_PYTHON_VERSION
|
||||||
|
@ -37,11 +40,17 @@ aliases:
|
||||||
test_windows: &test_windows
|
test_windows: &test_windows
|
||||||
os: windows
|
os: windows
|
||||||
language: shell
|
language: shell
|
||||||
|
env: &env_windows
|
||||||
|
PATH: /c/Python36:/c/Python36/Scripts:/c/Python37:/c/Python37/Scripts:/c/Python38:/c/Python38/Scripts:$PATH
|
||||||
|
PYTHONIOENCODING: UTF-8
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- /c/Python36
|
- /c/Python36
|
||||||
- /c/Python37
|
- /c/Python37
|
||||||
- /c/Python38
|
- /c/Python38
|
||||||
|
- /c/ProgramData/chocolatey/lib
|
||||||
|
- /c/ProgramData/chocolatey/bin
|
||||||
|
- /c/Users/travis/AppData/Local/pypoetry/Cache
|
||||||
before_install:
|
before_install:
|
||||||
- choco install python --version $JRNL_PYTHON_VERSION
|
- choco install python --version $JRNL_PYTHON_VERSION
|
||||||
- python -m pip install --upgrade pip
|
- python -m pip install --upgrade pip
|
||||||
|
@ -66,14 +75,13 @@ jobs:
|
||||||
name: Python 3.6 on MacOS
|
name: Python 3.6 on MacOS
|
||||||
python: 3.6
|
python: 3.6
|
||||||
env:
|
env:
|
||||||
- JRNL_PYTHON_VERSION=3.6.8
|
JRNL_PYTHON_VERSION: 3.6.8
|
||||||
- <<: *test_windows
|
- <<: *test_windows
|
||||||
name: Python 3.6 on Windows
|
name: Python 3.6 on Windows
|
||||||
python: 3.6
|
python: 3.6
|
||||||
env:
|
env:
|
||||||
- JRNL_PYTHON_VERSION=3.6.8
|
<<: *env_windows
|
||||||
- PATH=/c/Python36:/c/Python36/Scripts:$PATH
|
JRNL_PYTHON_VERSION: 3.6.8
|
||||||
- PYTHONIOENCODING=UTF-8
|
|
||||||
|
|
||||||
# Python 3.7 Tests
|
# Python 3.7 Tests
|
||||||
- name: Python 3.7 on Linux
|
- name: Python 3.7 on Linux
|
||||||
|
@ -82,14 +90,13 @@ jobs:
|
||||||
name: Python 3.7 on MacOS
|
name: Python 3.7 on MacOS
|
||||||
python: 3.7
|
python: 3.7
|
||||||
env:
|
env:
|
||||||
- JRNL_PYTHON_VERSION=3.7.5
|
JRNL_PYTHON_VERSION: 3.7.5
|
||||||
- <<: *test_windows
|
- <<: *test_windows
|
||||||
name: Python 3.7 on Windows
|
name: Python 3.7 on Windows
|
||||||
python: 3.7
|
python: 3.7
|
||||||
env:
|
env:
|
||||||
- JRNL_PYTHON_VERSION=3.7.5
|
<<: *env_windows
|
||||||
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
|
JRNL_PYTHON_VERSION: 3.7.5
|
||||||
- PYTHONIOENCODING=UTF-8
|
|
||||||
|
|
||||||
# Python 3.8 Tests
|
# Python 3.8 Tests
|
||||||
- name: Python 3.8 on Linux
|
- name: Python 3.8 on Linux
|
||||||
|
@ -98,14 +105,13 @@ jobs:
|
||||||
name: Python 3.8 on MacOS
|
name: Python 3.8 on MacOS
|
||||||
python: 3.8
|
python: 3.8
|
||||||
env:
|
env:
|
||||||
- JRNL_PYTHON_VERSION=3.8.0
|
JRNL_PYTHON_VERSION: 3.8.0
|
||||||
- <<: *test_windows
|
- <<: *test_windows
|
||||||
name: Python 3.8 on Windows
|
name: Python 3.8 on Windows
|
||||||
python: 3.8
|
python: 3.8
|
||||||
env:
|
env:
|
||||||
- JRNL_PYTHON_VERSION=3.8.0
|
<<: *env_windows
|
||||||
- PATH=/c/Python38:/c/Python38/Scripts:$PATH
|
JRNL_PYTHON_VERSION: 3.8.0
|
||||||
- PYTHONIOENCODING=UTF-8
|
|
||||||
|
|
||||||
# ... and beyond!
|
# ... and beyond!
|
||||||
- name: Python nightly on Linux
|
- name: Python nightly on Linux
|
||||||
|
@ -115,7 +121,7 @@ jobs:
|
||||||
- name: Python 3.7 on Linux, not UTC
|
- name: Python 3.7 on Linux, not UTC
|
||||||
python: 3.7
|
python: 3.7
|
||||||
env:
|
env:
|
||||||
- TZ=America/Edmonton
|
TZ: America/Edmonton
|
||||||
|
|
||||||
# Changelog for Unreleased changes
|
# Changelog for Unreleased changes
|
||||||
- stage: Update Changelog
|
- stage: Update Changelog
|
||||||
|
|
Loading…
Add table
Reference in a new issue