Skip to content

Commit

Permalink
[internal] add gitpod.io configuration (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhoelzl committed Jun 22, 2020
1 parent e5d68fa commit dd55e5b
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 15 deletions.
10 changes: 10 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM gitpod/workspace-full

USER gitpod

#Install Google key
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
RUN sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'

# Install custom tools, runtime, etc.
RUN sudo apt-get update && sudo apt-get install -y google-chrome-stable && sudo rm -rf /var/lib/apt/lists/*
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
image:
file: .gitpod.Dockerfile
tasks:
- init: make env.up
command: make serve
ports:
- port: 8000
onOpen: open-browser
- port: 8001
onOpen: ignore
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ os:
addons:
chrome: stable
python:
- "3.6"
- "3.8"
install:
- make env.up
script:
Expand All @@ -24,6 +24,5 @@ deploy:
secure: o5mx3ytR0CouVmdY//Sl84VFjpJhOSFfn0BailczV60iCyjlmgwSUtIs6Ec6J08HVvDhqBuoggWWKZpiTtRsM/BCXIrAxkaYDI6DI9UgmlCMjOOZ1r5Dff5pegoLXWyyrVIedrGeS7w3TyoLV+QKacqTK3FaGOtAxN77EHgH0wzzypaQyoNWAaLp+XtieQMbVsdWCEYb+qaGnEwQPK9OYS3Lpxm487fJHEnepTbF9cxOkThprCetYeY3k+M5sTnigU9AITavbd89grxubOddPGr4RSG4f8APqlLu59qL3VtwoUL5k65qbMNph4KVKVaBXCx5gQjFTFrhCsmypg/qviiqzxBWipKkKqP4//L/GmnhYWLmmOlz21QEWNgjZfnXFeTm6KlG7T5S18PsCxapu3XHi5/ms8LrNQ7TiiCdVKA6S2w1QwpeMX/pZKh1ii+9WhUeGPxtS6axQrRD6hRR+ubb0rn4xbadMCTE+e9vZre81nr1wr9k63hqNpzupqnesEib/BspvqiSS+YYuySvvqrFc/KXcxoTip8OlIA5w7fwHbCnpu1cYdE5saBCi9BvEln9+S8bhZwJSRbz2HQbiOjmNiyjeG8UBC1G+jD2D3RV/X3S0xxE2JqA/jhUHMOfwcOYyDF5bvU/IGskjFtoeLIgMCvrzZVx3V/hBJ/+gPw=
distributions: "sdist bdist_wheel"
on:
python: 3.6
tags: true
if: tag =~ /v\d+.\d+.\d+/
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ tests:

.PHONY: format
format:
black --target-version py36 .
black --target-version py38 .

.PHONY: lint
lint:
black --target-version py36 --check .
black --target-version py38 --check .

.PHONY: build
build:
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ as soon as the app was fully loaded.

## Development
### Getting Started
Open in [gitpod.io](https://gitpod.io#github.com/stefanhoelzl/vue.py)

Get the code
```bash
$ git clone https://github.com/stefanhoelzl/vue.py.git
Expand Down Expand Up @@ -85,6 +87,7 @@ $ make tests # runs all tets
$ make tests.unit # runs unit tests
$ make tests.selenium # runs selenium tests
$ make tests.cli # runs cli tests
$ make tests TEST=cli/test_provider.py::TestRenderIndex::test_defaults # run explicit test
```

Clean up your working directory.
Expand Down Expand Up @@ -112,15 +115,15 @@ see [CONTRIBUTING](CONTRIBUTING)

### Workflow
Development happens on the [master branch](https://github.com/stefanhoelzl/vue.py).
This also means the latest documentation can be found
This also means the latest documentation can be found
[here](https://github.com/stefanhoelzl/vue.py/blob/master/docs/docs/index.md).

The [release branch](https://github.com/stefanhoelzl/vue.py/tree/release)
The [release branch](https://github.com/stefanhoelzl/vue.py/tree/release)
should always be even with the latest release.
Changes to this branch also trigger a update of gh-pages.
Therefor fixes to the documentation can be made on the release branch.
So that the [documentation](https://stefanhoelzl.github.io/vue.py/docs/)
is always valid for the latest release.
is always valid for the latest release.

## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/stefanhoelzl/vue.py/blob/master/LICENSE) file for details
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# provider
Flask==1.0.2
Flask==1.1.2

# packaging
twine==1.11.0
Expand Down
Empty file added tests/__init__.py
Empty file.
7 changes: 3 additions & 4 deletions tests/selenium/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ def __getattr__(self, item):
def __enter__(self):
options = webdriver.ChromeOptions()
options.add_argument("headless")
if os.environ.get("CI"):
options.add_argument("disable-gpu")
options.add_argument("disable-dev-shm-usage")
options.add_argument("no-sandbox")
options.add_argument("disable-gpu")
options.add_argument("disable-dev-shm-usage")
options.add_argument("no-sandbox")

desired = DesiredCapabilities.CHROME
desired["goog:loggingPrefs"] = {"browser": "ALL"}
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/test_factory/test_component.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from unittest import mock
import asyncio

from vue import *

Expand All @@ -25,8 +24,7 @@ def do(self, event):

def test_method_as_coroutine():
class Component(VueComponent):
@asyncio.coroutine
def co(self):
async def co(self):
return self

assert "co" in Component.init_dict()["methods"]
Expand Down

0 comments on commit dd55e5b

Please sign in to comment.