Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
internewshid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aptivate
client-projects
internewshid
Commits
efd79a97
Unverified
Commit
efd79a97
authored
6 years ago
by
Luke Murphy
Browse files
Options
Downloads
Patches
Plain Diff
Just speed up the CI. Don't run `apc deploy`.
parent
9aa51220
No related branches found
No related tags found
1 merge request
!96
Don't run `apc deploy`.
Pipeline
#2687
passed
6 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-5
7 additions, 5 deletions
.gitlab-ci.yml
internewshid/local_settings.py.gitlab
+31
-0
31 additions, 0 deletions
internewshid/local_settings.py.gitlab
with
38 additions
and
5 deletions
.gitlab-ci.yml
+
7
−
5
View file @
efd79a97
...
...
@@ -6,16 +6,18 @@ services:
-
mysql:5.7
variables
:
DJANGO_SECRET_KEY
:
foobarbazbazbarfoo
MYSQL_ROOT_PASSWORD
:
internewshid
MYSQL_DATABASE
:
internewshid
APTIVATE_CLI_MYSQL_USER
:
root
APTIVATE_CLI_MYSQL_PASS
:
"
$MYSQL_ROOT_PASSWORD"
APTIVATE_CLI_MYSQL_HOST
:
mysql
before_script
:
-
apt update && apt install -y nodejs node-less
-
ln -srf internewshid/local_settings.py.gitlab internewshid/local_settings.py
-
echo "SECRET_KEY = '$DJANGO_SECRET_KEY'" >> internewshid/private_settings.py
-
echo "DB_PASSWORD = '$MYSQL_ROOT_PASSWORD'" >> internewshid/private_settings.py
-
apt update
-
apt install -y default-libmysqlclient-dev python-pymysql python-mysqldb nodejs node-less
-
pip install pipenv aptivate-cli
-
apc deploy --no-input
-
pipenv sync --dev
gitlab-ci
:
script
:
...
...
This diff is collapsed.
Click to expand it.
internewshid/local_settings.py.gitlab
0 → 100644
+
31
−
0
View file @
efd79a97
from __future__ import unicode_literals, absolute_import
from os import environ
DEBUG = True
ASSETS_DEBUG = DEBUG
ASSETS_AUTO_BUILD = DEBUG
DJANGOJS_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': environ['MYSQL_DATABASE'],
'USER': 'root',
'HOST': 'mysql',
'PASSWORD': environ['MYSQL_ROOT_PASSWORD'],
'TEST': {
'CHARSET': 'utf8',
'COLLATION': 'utf8_general_ci',
}
}
}
EMAIL_HOST = 'localhost'
SITE_HOSTNAME = 'localhost:8000'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment