Skip to content

Commit

Permalink
feat: refs #109849 setup ci config
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoMaurice committed Jul 23, 2019
1 parent bfcf5c9 commit 1a14774
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 2 deletions.
72 changes: 72 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
image: node:12-alpine

cache:
key: ci-cache-$CI_COMMIT_REF_SLUG
paths:
- node_modules/

stages:
- build
- test

####
####
#### TEMPLATES
####
####

.back_job:
except:
- schedules
tags:
- k8s
only:
refs:
- merge_requests
- master
- tags
changes:
- src/**/*
- .kubernetes/**/*
- package.json
- .gitlab-ci.yml
- .dockerignore
variables:
GIT_STRATEGY: none

####
####
#### BUILD STAGE
####
####

build:
extends: .back_job
stage: build
script:
- yarn install

####
####
#### LINT STAGE
####
####

lint:
extends: .back_job
stage: test
script:
- yarn install
- yarn tslint.check
- yarn prettier.check
cache:
policy: pull

test:
extends: .back_job
stage: test
script:
- yarn install
- yarn test
cache:
policy: pull
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const api = require('./api');
const logger = require('./logger');
const { APP_PORT, FRONT_URL } = require('./config');
const parseApi = require('./middleware/parse');
const parseSandbox = require('./middleware/parseSandbox');
// const parseSandbox = require('./middleware/parseSandbox');
const parseDashboard = require('./middleware/parseDashboard');
const parseSwagger = require('./middleware/parseSwagger');

Expand All @@ -25,7 +25,8 @@ app.use(express.urlencoded({ extended: true }));

// Serve the Parse API at /parse URL prefix
app.use('/parse', parseApi);
app.use('/parse-sandbox', parseSandbox);
// Disable don't work correctly with parseApi for the moment
// app.use('/parse-sandbox', parseSandbox);
app.use('/dashboard', parseDashboard);
app.use(parseSwagger);

Expand Down

0 comments on commit 1a14774

Please sign in to comment.