Ci workflows (#185)

* Build dev images with every commit.

* Use virtualenv to build dev images.

* Activate virtualenv properly.
This commit is contained in:
Abhilash Raj
2017-11-05 21:22:19 -08:00
committed by GitHub
parent 23339ad812
commit 97e9d68c3b
2 changed files with 35 additions and 36 deletions

View File

@@ -58,6 +58,3 @@ workflows:
jobs: jobs:
- build: - build:
context: org-global context: org-global
filters:
branches:
only: master

View File

@@ -12,7 +12,9 @@ fi
REG_URL=${REGISTRY}_URL REG_URL=${REGISTRY}_URL
if [ "$EVENT_TYPE" = "cron" ] || [ "$DEV" = "true" ] ; then if [ "$EVENT_TYPE" = "cron" ] || [ "$DEV" = "true" ] ; then
python -m pip install python-gitlab python3 -m venv venv
source venv/bin/activate
pip install python-gitlab
# Get the latest commit for repositories and set their reference values to be # Get the latest commit for repositories and set their reference values to be
# used in the development builds. # used in the development builds.
CORE_REF=$(python get_latest_ref.py mailman/mailman) CORE_REF=$(python get_latest_ref.py mailman/mailman)