-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (49 loc) · 1.42 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
# Only build PRs or tags
if: (type = pull_request) OR (tag IS present)
os:
- windows
- linux
- osx
dist: bionic
osx_image: xcode11.3
# osx_image: xcode9.4
language: shell
notifications:
email: false
git:
submodules: false
# Install packages
install:
- _py_ver="3.8"
- |
if [ "$TRAVIS_OS_NAME" = 'windows' ]; then
choco install miniconda3
_pref="/c/tools/miniconda3"
export PATH="$_pref:$_pref/Scripts:$_pref/condabin:$PATH"
elif [ "$TRAVIS_OS_NAME" = 'osx' ]; then
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
else
sudo apt-get update
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
fi
- hash -r
- source activate base
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda config --add channels defaults
- conda update -y conda
# Useful for debugging any issues with conda
- conda info -a
- |
conda create -y -n test-env "python=$_py_ver" "pip>=10.0.1"
- source activate test-env
- cd ./pypi/py-pandoc-crossref
- pip install .
# Run test
script:
- "pandoc-crossref --version"
- "pandoc-crossref --help"