Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
ots
hypha
Commits
3093a70a
Commit
3093a70a
authored
6 years ago
by
Fredrik Jonsson
Browse files
Options
Downloads
Patches
Plain Diff
Updated circleci config for gulp, untested for now.
parent
1c7a3047
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.circleci/config.yml
+9
-10
9 additions, 10 deletions
.circleci/config.yml
with
9 additions
and
10 deletions
.circleci/config.yml
+
9
−
10
View file @
3093a70a
...
...
@@ -15,7 +15,6 @@ jobs:
PGHOST
:
localhost
PGUSER
:
root
DJANGO_SETTINGS_MODULE
:
opentech.settings.test
NPM_CONFIG_PRODUCTION
:
false
SEND_MESSAGES
:
false
-
image
:
circleci/postgres:10.5
...
...
@@ -38,14 +37,13 @@ jobs:
-
restore_cache
:
keys
:
-
v1-yarn-{{ .Branch }}-{{ checksum "
opentech/static_src/yarn.lock
" }}
-
v1-yarn-{{ .Branch }}-{{ checksum "
package-lock.json
" }}
-
v1-yarn-{{ .Branch }}-
-
v1-yarn-
-
run
:
name
:
install dependencies
command
:
|
sudo apt-get install rsync
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
...
...
@@ -53,9 +51,9 @@ jobs:
-
run
:
name
:
buils static assets
command
:
|
cd opentech/static_src
yarn
install -
-frozen-lockfile --cache-folder ~/.cache/yarn
npm run build:prod
npm install --quiet
npm
install -
g gulp-cli
gulp deploy
-
save_cache
:
paths
:
...
...
@@ -64,7 +62,7 @@ jobs:
-
save_cache
:
paths
:
-
~/.cache/yarn
-
./node_modules
key
:
v1-yarn-{{ .Branch }}-{{ checksum "opentech/static_src/yarn.lock" }}
# run tests!
...
...
@@ -76,9 +74,10 @@ jobs:
name
:
run tests
command
:
|
. venv/bin/activate
python manage.py createcachetable
python manage.py collectstatic --no-input
python manage.py migrate
flake8
python manage.py collectstatic --noinput --verbosity=0
python manage.py check
python manage.py makemigrations --check --noinput --verbosity=0
python manage.py test
-
store_artifacts
:
...
...
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