Browse Source

package/ci: note to self: don't use CIRCLE_WORKING_DIRECTORY ever again.

pull/11/head
Vladimír Vondruš 5 years ago
parent
commit
5dad3bb8af
  1. 9
      package/ci/unix-desktop-gles.sh
  2. 9
      package/ci/unix-desktop.sh

9
package/ci/unix-desktop-gles.sh

@ -79,9 +79,10 @@ ninja $NINJA_JOBS
CORRADE_TEST_COLOR=ON ctest -V CORRADE_TEST_COLOR=ON ctest -V
# Verify the setuptools install # Verify the setuptools install. Not using $CIRCLE_WORKING_DIRECTORY because
# it's ~ and that's not correctly expanded always.
cd src/python cd src/python
python3 setup.py install --root="$CIRCLE_WORKING_DIRECTORY/install" --prefix=/usr python3 setup.py install --root="$(pwd)/../../install" --prefix=/usr
# Run tests & gather coverage # Run tests & gather coverage
cd ../../../src/python/corrade cd ../../../src/python/corrade
@ -94,4 +95,6 @@ cp .coverage ../.coverage.magnum
# Test docstring validity # Test docstring validity
cd ../../../doc/python cd ../../../doc/python
PYTHONPATH="$CIRCLE_WORKING_DIRECTORY/build/src/python" python3 -m doctest -v *.rst # I would use $CIRCLE_WORKING_DIRECTORY, but that's ~ and that's not expanded
# here for some reason
PYTHONPATH="$(pwd)/../../build/src/python" python3 -m doctest -v *.rst

9
package/ci/unix-desktop.sh

@ -85,9 +85,10 @@ ninja $NINJA_JOBS
CORRADE_TEST_COLOR=ON ctest -V CORRADE_TEST_COLOR=ON ctest -V
# Verify the setuptools install # Verify the setuptools install. Not using $CIRCLE_WORKING_DIRECTORY because
# it's ~ and that's not correctly expanded always.
cd src/python cd src/python
python3 setup.py install --root="$CIRCLE_WORKING_DIRECTORY/install" --prefix=/usr python3 setup.py install --root="$(pwd)/../../install" --prefix=/usr
# Run tests & gather coverage # Run tests & gather coverage
cd ../../../src/python/corrade cd ../../../src/python/corrade
@ -100,4 +101,6 @@ cp .coverage ../.coverage.magnum
# Test docstring validity # Test docstring validity
cd ../../../doc/python cd ../../../doc/python
PYTHONPATH="$CIRCLE_WORKING_DIRECTORY/build/src/python" python3 -m doctest -v *.rst # I would use $CIRCLE_WORKING_DIRECTORY, but that's ~ and that's not expanded
# here for some reason
PYTHONPATH="$(pwd)/../../build/src/python" python3 -m doctest -v *.rst

Loading…
Cancel
Save