0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00
wagtail/.squash.yml
Thibaud Colas c58a681828
Optimise npm install in squash for speed & logs visibility (#6158)
* Optimise npm install in squash for speed & logs

- `--no-optional` prevents installing dependencies that shouldn’t be needed for a one-off build
- `--no-audit` prevents running the `npm audit`
- `--progress=false`

* Add additional --no-fund flag to npm install

* Add "CI=true" environment variable to Squash builds for Node tooling

* Move CI=true to commands that need it

* Remove options that did not work
2020-06-25 16:03:42 +01:00

25 lines
1.1 KiB
YAML

deployments:
default:
dockerimage: python:3.7.4-stretch
build_steps:
- apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
- RUN bash -c "curl -sL https://deb.nodesource.com/setup_10.x | bash -"
- apt install -y nodejs
- pip install setuptools pip --upgrade --force-reinstall
- cd /code
post_build_steps:
- npm install --no-save --no-audit --progress=false
- npm run dist
- pip install /code
- mkdir /myproject
- cd /myproject
- wagtail start mysite
- cd /myproject/mysite
- python manage.py migrate
- echo "<br><h1>Wagtail test instance</h1><p>Log into <a href='/admin/'>/admin/</a> with 'admin' / 'changeme'.</p>" > home/templates/home/welcome_page.html
- echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'changeme')" | python manage.py shell
launch_steps:
- cd /myproject/mysite
- python manage.py runserver 0.0.0.0:80
run_options: -v ~/code:/code