Add some configuration for the e2e tests
This commit is contained in:
parent
7e4e6c4815
commit
01791a9db5
|
|
@ -5,3 +5,6 @@ RUN pip install pipenv
|
|||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
|
||||
RUN apt-get install nodejs -y
|
||||
RUN apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 -y
|
||||
RUN apt-get install postgresql postgresql-contrib -y
|
||||
RUN npm install cypress
|
||||
RUN /node_modules/.bin/cypress install
|
||||
|
|
|
|||
|
|
@ -37,10 +37,12 @@ aliases:
|
|||
- *setup-tests
|
||||
- npm install --prefix client
|
||||
- npm run "install:cypress" --prefix client
|
||||
- psl -U $DATABASE_USER -h $DATABASE_HOST -c "create database $DATABASE_NAME"
|
||||
- python server/manage.py dummy_data
|
||||
- python server/manage.py runserver &
|
||||
- npm run dev --prefix client &
|
||||
- npm run "test:cypress" --prefix client
|
||||
- cd client
|
||||
- /node_modules/.bin/cypress run
|
||||
- &deploy-prod
|
||||
name: deploy to prod on Heroku
|
||||
script:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker build --memory=1g --memory-swap=1g -t iterativ/skillbox-test -f Dockerfile .
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker run -it --volume /home/ramon/dev/django/skillbox:/skillbox --workdir /skillbox --memory 4g --memory-swappiness 0 --entrypoint /bin/bash --link skillboxtestdb:postgres iterativ/skillbox-test:latest
|
||||
|
|
@ -1,6 +1,11 @@
|
|||
#!/bin/bash
|
||||
export SECRET_KEY=abcd1234
|
||||
export DATABASE_URL=postgres://postgres:postgres@localhost:5432/skillbox
|
||||
export DATABASE_HOST=localhost
|
||||
export DATABASE_USER=postgres
|
||||
export PG_PASSWORD=postgres
|
||||
export DATABASE_NAME=skillbox_test
|
||||
export DATABASE_PORT=5432
|
||||
export DATABASE_URL=postgres://$DATABASE_USER:$PG_PASSWORD@$DATABASE_HOST:$DATABASE_PORT/$DATABASE_NAME
|
||||
export DEBUG=True
|
||||
export USE_AWS=False
|
||||
pipenv install --dev --system
|
||||
|
|
|
|||
Loading…
Reference in New Issue