no shortcuts to prod
modified: .gitlab-ci.yml modified: Makefile
This commit is contained in:
parent
7b8b54f038
commit
8b456825ce
2 changed files with 1 additions and 9 deletions
|
|
@ -10,10 +10,6 @@ test:
|
|||
except:
|
||||
- tags
|
||||
script: make test
|
||||
artifacts:
|
||||
paths:
|
||||
- env.vanilla
|
||||
expire_in: 1 hour
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
|
@ -21,8 +17,6 @@ build:
|
|||
except:
|
||||
- tags
|
||||
script:
|
||||
- ls -hal
|
||||
- mv env.vanilla env
|
||||
- make install-source-prod
|
||||
# Copy static assets to env/static
|
||||
- cp -pr remarkbox/static env/static
|
||||
|
|
@ -34,7 +28,7 @@ build:
|
|||
- cp -pr env/static static
|
||||
- tar -zcf static.tar.gz static
|
||||
# Clone the virtualenv with virtualenv-clone into the desired location.
|
||||
- virtualenv-clone env /opt/remarkbox/env
|
||||
- virtualenv-clone -vvv $PWD/env /opt/remarkbox/env
|
||||
# Create a tarball of the virtualenv.
|
||||
- tar -zcf env.tar.gz -C /opt/remarkbox .
|
||||
# Create a SHA512 hash of env.tar.gz.
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -67,13 +67,11 @@ install-source-dev-and-test: venv install-themes
|
|||
$(PIP) install --editable .
|
||||
$(PIP) install --upgrade -r requirements-dev.txt
|
||||
$(PIP) install --upgrade -r requirements-test.txt
|
||||
cp -rp $(VENV_DIR) $(VENV_DIR).vanilla
|
||||
|
||||
install-source-prod: venv install-themes
|
||||
@echo "Installing remarkbox from source (editable mode)..."
|
||||
$(PIP) install .
|
||||
$(PIP) install --upgrade -r requirements-prod.txt
|
||||
cp -rp $(VENV_DIR) $(VENV_DIR).vanilla
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue