-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
63 lines (53 loc) · 1.58 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
group: travis_latest
os: linux
dist: xenial
# Travis whitelists the installable packages, additions can be requested
# https://github.com/travis-ci/apt-package-whitelist
addons:
apt:
packages: &common_packages
# Speedup builds
- eatmydata
cache:
directories:
- $HOME/.cache/pip
env:
global:
- WITH_CYTHON="true"
stages:
# Do the style check and a single test job, don't proceed if it fails
- name: Initial tests
# Do the rest of the tests
- name: Comprehensive tests
jobs:
include:
# Do all python versions without environment variables set
- stage: Initial tests
python: 3.6
- stage: Comprehensive tests
python: 3.8
env: USE_SDIST=true WITH_COVERAGE=true BUILD_LIBXPDF=true
- python: 2.7
allow_failures:
- python: 2.7
before_install:
- set -e
- CMAKE_VERSION=3.17.3
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz"
echo CMAKE_URL=${CMAKE_URL}
mkdir cmake-${CMAKE_VERSION} && travis_retry wget --no-check-certificate -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake-${CMAKE_VERSION}
export PATH=${PWD}/cmake-${CMAKE_VERSION}/bin:${PATH}
else
brew install cmake || brew upgrade cmake
fi
cmake --version
- bash ./build_tools/travis_before_install.sh
script:
- bash ./build_tools/travis_test.sh
# after_success:
# - bash ./build_tools/travis-upload-wheel.sh