superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Setup FOSSA as part of CI (#7999)
Date Thu, 08 Aug 2019 04:08:27 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 2f2a3b7  Setup FOSSA as part of CI (#7999)
2f2a3b7 is described below

commit 2f2a3b79b4532fd8565303b44169e22497ed2196
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Wed Aug 7 21:08:10 2019 -0700

    Setup FOSSA as part of CI (#7999)
    
    * Setup FOSSA as part of CI
    
    * Add comments and links to FOSSA docs on script
---
 .fossa.yml       | 38 ++++++++++++++++++++++++++++++++++++++
 .travis.yml      |  7 +++++++
 scripts/fossa.sh | 26 ++++++++++++++++++++++++++
 tox.ini          |  7 +++++++
 4 files changed, 78 insertions(+)

diff --git a/.fossa.yml b/.fossa.yml
new file mode 100755
index 0000000..fd56e67
--- /dev/null
+++ b/.fossa.yml
@@ -0,0 +1,38 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Generated by FOSSA CLI (https://github.com/fossas/fossa-cli)
+# Visit https://fossa.com to learn more
+
+version: 2
+cli:
+  server: https://app.fossa.com
+  fetcher: custom
+analyze:
+  modules:
+  - name: assets
+    type: npm
+    target: superset/assets
+    path: superset/assets
+  - name: docs
+    type: pip
+    target: docs
+    path: docs
+  - name: .
+    type: pip
+    target: .
+    path: .
diff --git a/.travis.yml b/.travis.yml
index cacef82..ec11b25 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,13 @@ jobs:
     - language: python
       python: 3.6
       env:
+        - TOXENV=fossa
+      install:
+        - pip install --upgrade pip
+        - pip install tox
+    - language: python
+      python: 3.6
+      env:
         - TOXENV=license-check
         - TRAVIS_CACHE=$HOME/.travis_cache/
       addons:
diff --git a/scripts/fossa.sh b/scripts/fossa.sh
new file mode 100755
index 0000000..7ba54de
--- /dev/null
+++ b/scripts/fossa.sh
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This is the recommended way to install FOSSA's cli per the docs:
+# https://docs.fossa.com/docs/travisci#section-add-fossa-steps-to-travisyml
+curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh
| sudo bash
+
+# This key is a push-only API key, also recommended for public projects
+# https://docs.fossa.com/docs/api-reference#section-push-only-api-token
+FOSSA_API_KEY="f72e93645bdfeab94bd227c7bbdda4ef" fossa
diff --git a/tox.ini b/tox.ini
index c5d2cf8..1c33d69 100644
--- a/tox.ini
+++ b/tox.ini
@@ -124,6 +124,12 @@ whitelist_externals =
     {toxinidir}/scripts/check_license.sh
 deps =
 
+[testenv:fossa]
+commands =
+    {toxinidir}/scripts/fossa.sh
+passenv = *
+deps =
+
 [testenv:py36-mysql]
 deps =
     -rrequirements.txt
@@ -145,6 +151,7 @@ deps =
 
 [tox]
 envlist =
+    fossa
     black
     cypress-dashboard
     cypress-explore


Mime
View raw message