Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add component_sdk tests to travis tests #761

Merged
merged 22 commits into from
Feb 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 48 additions & 37 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,52 @@
# See the License for the specific language governing permissions and
# limitations under the License.

language: python
python:
- "3.5"
addons:
apt:
packages:
- default-jdk
- wget
chrome: stable
matrix:
include:
- language: node_js
node_js: "11.8.0"
addons:
chrome: stable
before_install: npm i -g npm@latest
script:
# Frontend tests
- cd $TRAVIS_BUILD_DIR/frontend
- node -v
- npm i
- npm run test:coveralls
- language: generic
script:
# Backend unit tests
- cd $TRAVIS_BUILD_DIR/backend/src
- gimme -f 1.11.4
- source ~/.gimme/envs/go1.11.4.env
- go vet -all -shadow ./...
- go test ./...
- language: python
python: "2.7"
env: TOXENV=py27
script:
# Component SDK tests
- cd $TRAVIS_BUILD_DIR/component_sdk/python
- ./run_test.sh
- language: python
python: "3.6"
env: TOXENV=py36
addons:
apt:
packages:
- default-jdk
- wget
script:
# DSL tests
- wget http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar -O /tmp/swagger-codegen-cli.jar
- cd $TRAVIS_BUILD_DIR/sdk/python
- ./build.sh /tmp/kfp.tar.gz
- pip install /tmp/kfp.tar.gz
- python tests/dsl/main.py
- python tests/compiler/main.py
- python -m unittest discover --verbose --start-dir tests --top-level-directory=..

before_install: npm i -g npm@latest

script:
# Frontend tests
- cd $TRAVIS_BUILD_DIR/frontend
- nvm install node
- node -v
- npm i
- npm run test:coveralls

# DSL tests
- wget http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar -O /tmp/swagger-codegen-cli.jar
- cd $TRAVIS_BUILD_DIR/sdk/python
- ./build.sh /tmp/kfp.tar.gz
- pip install /tmp/kfp.tar.gz
- python tests/dsl/main.py
- python tests/compiler/main.py

# SDK Components tests
- cd $TRAVIS_BUILD_DIR/sdk/python
- python3 -m unittest discover --verbose --start-dir tests --top-level-directory=..

# Backend unit tests
- cd $TRAVIS_BUILD_DIR/backend/src
- gimme -f 1.11.4
- source ~/.gimme/envs/go1.11.4.env
- go vet -all -shadow ./...
- go test ./...
# Component SDK tests
- cd $TRAVIS_BUILD_DIR/component_sdk/python
- ./run_test.sh
3 changes: 1 addition & 2 deletions component_sdk/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
kubernetes
google-cloud-storage
kubernetes
1 change: 0 additions & 1 deletion component_sdk/python/tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[tox]
envlist = py27,py36
skipsdist=True

[testenv]
usedevelop = True
Expand Down