Skip to content

Commit b328a1c

Browse files
authored
Merge pull request #2 from rmorshea/travis
Add Travis
2 parents e8160a9 + 6de9fa7 commit b328a1c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+69
-6
lines changed

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
dist: xenial
2+
language: python
3+
4+
cache: apt
5+
before_install:
6+
- sudo apt update
7+
- sudo apt install curl
8+
- sudo apt install nodejs npm
9+
- npm install -g yarn
10+
- sudo curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
11+
- source $HOME/.poetry/env
12+
install:
13+
- bash scripts/install.sh
14+
- bash scripts/build.sh
15+
16+
script: cd $WORK_DIR && eval $TEST_CMD
17+
18+
matrix:
19+
include:
20+
- name: "black"
21+
python: 3.7
22+
env:
23+
- WORK_DIR="./"
24+
- TEST_CMD="black --verbose ."
25+
- name: "flake8"
26+
python: 3.7
27+
env:
28+
- WORK_DIR="src/py"
29+
- TEST_CMD="flake8"
30+
- name: "python-3.6"
31+
python: 3.6
32+
env:
33+
- WORK_DIR="src/py"
34+
- TEST_CMD="pytest"
35+
- name: "python-3.7"
36+
python: 3.7
37+
env:
38+
- WORK_DIR="src/py"
39+
- TEST_CMD="pytest"

README.md

Lines changed: 4 additions & 0 deletions

scripts/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
cd idom
1+
set -e
2+
3+
cd src
24

35
# clean up possible old install
46
if [ -d "py/idom/static" ]; then

scripts/install.sh

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1-
cd purly/py
2-
pip install .
3-
cd ../
1+
set -e
2+
3+
# Javascript
4+
# ==========
5+
6+
cd src/js
7+
8+
yarn
9+
yarn setup
10+
11+
cd ../../
12+
13+
# Python
14+
# ======
15+
16+
cd src/py
17+
18+
poetry install
19+
20+
cd ../../
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)