Skip to content

Commit

Permalink
Merge fed4980 into 362e4cb
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Sep 19, 2018
2 parents 362e4cb + fed4980 commit bd7b5b4
Show file tree
Hide file tree
Showing 34 changed files with 1,097 additions and 256 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
61 changes: 47 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,64 @@
language: python
python:
- 2.7.14
matrix:
include:
- name: "Plone Tests"
python: 2.7.14
env: TEST_SUITE=plone
- name: "Guillotina Tests"
python: 3.7
dist: xenial
env: TEST_SUITE=guillotina
cache:
pip: true
directories:
- node_modules
sudo: required
services:
- docker
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
before_install:
- nvm install 8.11.3
- mkdir webdriver
- wget https://github.com/mozilla/geckodriver/releases/download/v0.20.0/geckodriver-v0.20.0-linux64.tar.gz
- tar -xzf geckodriver-v0.20.0-linux64.tar.gz -C webdriver
- wget https://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip -d webdriver
- export PATH=$PATH:$(pwd)/webdriver
- nvm install 8.11.3;
- if [ "$TEST_SUITE" == "guillotina" ]; then
echo "Guillotina Before Install";
fi
- mkdir webdriver;
- wget https://github.com/mozilla/geckodriver/releases/download/v0.20.0/geckodriver-v0.20.0-linux64.tar.gz;
- tar -xzf geckodriver-v0.20.0-linux64.tar.gz -C webdriver;
- wget https://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip;
- unzip chromedriver_linux64.zip -d webdriver;
- export PATH=$PATH:$(pwd)/webdriver;
install:
- virtualenv env --python=$(which python) --no-site-packages
- env/bin/pip install zc.recipe.egg==2.0.4 --no-cache-dir
- env/bin/pip install -r api/docker/requirements.txt
- env/bin/pip install -U https://github.com/zopefoundation/z3c.autoinclude/archive/pip.tar.gz#egg=z3c.autoinclude
- if [ "$TEST_SUITE" == "plone" ]; then
virtualenv env --python=$(which python) --no-site-packages;
env/bin/pip install zc.recipe.egg==2.0.4 --no-cache-dir;
env/bin/pip install -r api/docker/requirements.txt;
env/bin/pip install -U https://github.com/zopefoundation/z3c.autoinclude/archive/pip.tar.gz#egg=z3c.autoinclude;
fi
- if [ "$TEST_SUITE" == "guillotina" ]; then
echo "Guillotina CMS Install";
pip install -r g-api/requirements.txt;
docker-compose -f g-api/docker-compose.yml up -d;
fi
- yarn
- yarn build
script:
- yarn coverage
- PYTHONPATH=$(pwd)/tests env/bin/pybot -v BROWSER:headlesschrome tests
- if [ "$TEST_SUITE" == "plone" ]; then
PYTHONPATH=$(pwd)/tests env/bin/pybot -v BROWSER:headlesschrome tests;
fi
- if [ "$TEST_SUITE" == "guillotina" ]; then
PYTHONPATH=$(pwd)/tests_guillotina pybot -v BROWSER:headlesschrome tests_guillotina;
fi
after_success:
- if [ "$TEST_SUITE" == "guillotina" ]; then
docker build -t plone/plone-react:$TRAVIS_BRANCH .;
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin;
docker push plone/plone-react:$TRAVIS_BRANCH.$TRAVIS_BUILD_NUMBER;
docker tag plone/plone-react:$TRAVIS_BRANCH.$TRAVIS_BUILD_NUMBER plone/plone-react:$TRAVIS_BRANCH.latest;
docker push plone/plone-react:$TRAVIS_BRANCH.latest;
fi

0 comments on commit bd7b5b4

Please sign in to comment.