Skip to content

Commit

Permalink
.gitlab-ci.yml: Add GitLab CI to deploy pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Oct 14, 2018
1 parent 5933dc8 commit 00b097b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
image: python:3.6

stages:
- build
- deploy

variables:
XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache/"

.test_env:
stage: test
cache:
key: test
paths:
- .cache/pip

.build_env:
extends: .test_env
artifacts:
name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
paths:
- public

build:
extends: .build_env
stage: build
before_script:
- pip install -r requirements.txt
script:
- ./.ci/build.sh

pages:
stage: deploy
variables:
# Simulate the netlify production flag
CONTEXT: production
script:
- echo 'Nothing to do'
artifacts:
paths:
- public
only:
- master

0 comments on commit 00b097b

Please sign in to comment.