Skip to content

Commit 3e87fab

Browse files
author
Nicklas Tegner
authored
Added MacOS testing on travis CI (#267)
* Updated travis config to include mac os testing * Updated travis config to include mac os testing * Updated travis config to include mac os testing * fixes travisci syntax * fixed travis syntax * fixed travis syntax * fixed travis syntax * added travis files * added travis files * added travis files * Fixed wrong os name in if statement * added more if statements * switched to basic tex * Added py3.10 back on linux * Updated release document and clean up * Added intel mac as test * Added processor check to mac testings * Added processor check to mac testings
1 parent 0538f99 commit 3e87fab

File tree

2 files changed

+36
-11
lines changed

2 files changed

+36
-11
lines changed

.travis.yml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
language: python
2-
python:
3-
- "3.6"
4-
- "3.7"
5-
- "3.8"
6-
- "3.9"
7-
- "3.10.0"
82
os: linux
9-
dist: bionic
3+
jobs:
4+
include:
5+
- os: linux
6+
dist: bionic
7+
python: 3.6
8+
- os: linux
9+
dist: bionic
10+
python: 3.7
11+
- os: linux
12+
dist: bionic
13+
python: 3.8
14+
- os: linux
15+
dist: bionic
16+
python: 3.9
17+
- os: linux
18+
dist: bionic
19+
python: 3.10
20+
- os: osx
21+
osx_image: xcode13.1
22+
language: generic
23+
- os: osx
24+
osx_image: xcode13.3
25+
language: generic
26+
- os: osx
27+
osx_image: xcode12.2
28+
language: generic
1029
sudo: false
1130
addons:
1231
apt:
@@ -19,8 +38,14 @@ addons:
1938
- texlive-fonts-recommended
2039
- texlive-latex-recommended
2140
- lmodern
41+
42+
before_install:
43+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then python -m pip install poetry; fi
44+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sysctl -n machdep.cpu.brand_string; fi
45+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then python3 -m pip install poetry; fi
46+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install basictex; fi
47+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then eval "$(/usr/libexec/path_helper)"; fi
2248
install:
23-
- travis_retry python -m pip install poetry
2449
- travis_retry poetry install
2550
# only download pandoc, the tests should work without a install of pypandoc
2651
- poetry run python -c "from pypandoc import download_pandoc as dp; dp(targetfolder='~/bin/');"

release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This is the internal checklist, so that @janschulz doesn't have to do another br
66
- run the tests (on windows): `python tests.py` -> everything ok?
77
- increment the version in `pypandoc/__init__.py` and `pyproject.toml`, commit with `git commit -m "pypandoc vx.x.x"`
88
- tag the version: `git tag -a vx.x.x`, write a nice version message summarizing new features
9-
- push directly to the repo (registered as `orig_write` in my setup): `git push orig_write HEAD:master --tags`
10-
- build the sdist file: `python setup.py sdist`
11-
- upload to PyPI: `twine upload dist/pypandoc-<version>.zip`
9+
- push directly to the repo: `git push; git push --tags`
10+
- build the sdist and wheel files: `python setup.py sdist bdist_wheel`
11+
- upload to PyPI: `twine upload dist/*`
1212
- go to the [package builder repo](https://github.com/JanSchulz/package-builder) and increment the version information in `recipes\pypandoc\meta.yml`
1313
- commit with `git commit -m "Build pypandoc vx.x.x"`
1414
- `git push` -> builds arrive at [PyPI](https://pypi.python.org/pypi?:action=display&name=pypandoc) and [anaconda](https://anaconda.org/janschulz/pypandoc/files)

0 commit comments

Comments
 (0)