diff options
Diffstat (limited to '.circleci/config.yml')
-rw-r--r-- | .circleci/config.yml | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index f5cb756..7e15a65 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,20 +36,26 @@ jobs: - pip-cache - run: + name: Install ffmpeg + command: | + sudo apt update + sudo apt install ffmpeg + + - run: name: Get Python running command: | python -m pip install --user --upgrade --progress-bar off pip python -m pip install --user -e . python -m pip install --user --upgrade --no-cache-dir --progress-bar off -r requirements.txt python -m pip install --user --upgrade --progress-bar off -r docs/requirements.txt - python -m pip install --user --upgrade --progress-bar off ipython "https://api.github.com/repos/sphinx-gallery/sphinx-gallery/zipball/master" memory_profiler - - + python -m pip install --user --upgrade --progress-bar off ipython sphinx-gallery memory_profiler + # python -m pip install --user --upgrade --progress-bar off ipython "https://api.github.com/repos/sphinx-gallery/sphinx-gallery/zipball/master" memory_profiler - save_cache: key: pip-cache paths: - ~/.cache/pip + # Look at what we have and fail early if there is some library conflict - run: name: Check installation @@ -57,6 +63,11 @@ jobs: which python python -c "import ot" + - run: + name: Correct link in release file + command: | + sed -i -r 's/PR #([[:digit:]]*)/\[PR #\1\]\(https:\/\/github.com\/PythonOT\/POT\/pull\/\1\)/' RELEASES.md + sed -i -r 's/Issue #([[:digit:]]*)/\[Issue #\1\]\(https:\/\/github.com\/PythonOT\/POT\/issues\/\1\)/' RELEASES.md # Build docs - run: name: make html @@ -106,10 +117,10 @@ jobs: echo "Deploying dev docs for ${CIRCLE_BRANCH}."; cd master cp -a /tmp/build/html/* .; - cp -a /tmp/build/html/.github .github; + cp -a /tmp/build/html/.github/* .github/; touch .nojekyll; git add -A; - git add -f .github/*.html ; + git add -f .github/* ; git commit -m "CircleCI update of dev docs (${CIRCLE_BUILD_NUM})."; git push origin master; else @@ -146,10 +157,10 @@ jobs: git clean -xdf echo "Deploying dev docs for ${CIRCLE_BRANCH}."; cp -a /tmp/build/html/* .; - cp -a /tmp/build/html/.github .github; + cp -a /tmp/build/html/.github/* .github/; touch .nojekyll; git add -A; - git add -f .github/*.html ; + git add -f .github/* ; git commit -m "CircleCI update of dev docs (${CIRCLE_BUILD_NUM})."; git push origin master; |