summaryrefslogtreecommitdiffstats
path: root/LICENSE.rst
blob: 0e9e7710408abe90cd77f871164552259efd7d70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Copyright (c) 2015 Ericsson AB and others.

All rights reserved. This program and the accompanying materials
are made available under the terms of the Apache License, Version 2.0
which accompanies this distribution, and is available at
http://www.apache.org/licenses/LICENSE-2.0


This license is related to the following files included in this directory:

- ez_setup-py
- setup.py
.highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2016 Linux Foundation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

#export PATH=${PATH}:/root/gsutil

#Step Generate index.html
if [ -f index.html ] ; then
      rm -f index.html
fi

OUTPUT="index.html"

for index in $(gsutil ls -l gs://artifacts.opnfv.org | grep -v logs | grep -v review | awk 'NF==1'| sed s,gs://artifacts.opnfv.org/,,)
do
echo $index
  echo "<LI><a href=\"${index%/*}.html\">"$index"</a></LI>" >> $OUTPUT
done

#functest logs##########################

for project in functest vswitchperf
do

    for index in $(gsutil ls -l gs://artifacts.opnfv.org/logs/"$project"/ |awk 'NF==1'| sed s,gs://artifacts.opnfv.org/,, )
    do
    index="$(echo ${index%/*} | sed s,/,_,g)"
      echo "<LI><a href=\"http://artifacts.opnfv.org/${index%/*}.html\">"$index"</a></LI>" >> $OUTPUT
    done

done
#End step 1
#####################################


#genrate html files for all project except vswitchperf
for index in $(gsutil ls -l gs://artifacts.opnfv.org | grep -v logs |awk 'NF==1'| sed s,gs://artifacts.opnfv.org/,,)
do
OUTPUT=${index%/*}.html
rm -f $OUTPUT


    for filepath in $(gsutil ls -R gs://artifacts.opnfv.org/"$index" | sed s,gs://artifacts.opnfv.org/,, | grep -v "favicon.ico" | grep -v "gsutil" ); do
    echo $filepath

    if [[ $filepath =~ "/:" ]]; then
      path=$(echo $filepath| sed s,/:,,g)
      echo "<UL>" >> $OUTPUT
      echo "<LI>$path</LI>" >> $OUTPUT
      echo "</UL>" >> $OUTPUT
    else
      echo "<LI><a href=\"http://artifacts.opnfv.org/$filepath\">"$filepath"</a></LI>" >> $OUTPUT
    fi
done

gsutil cp $OUTPUT gs://artifacts.opnfv.org/

gsutil -m setmeta \
     -h "Content-Type:text/html" \
     -h "Cache-Control:private, max-age=0, no-transform" \
      gs://artifacts.opnfv.org/$OUTPUT \

done



#generate file for vswitch perf (I dont know what happend here but there is a wierd character in this bucket)

index=vswitchperf
OUTPUT=${index%/*}.html
rm -f $OUTPUT

        for filepath in $(gsutil ls -R gs://artifacts.opnfv.org/"$index" | sed s,gs://artifacts.opnfv.org/,, | grep -v "favicon.ico" | grep -v "gsutil" ); do
        echo $filepath

        if [[ $filepath =~ "/:" ]]; then
          path=$(echo $filepath| sed s,/:,,g)
          echo "<UL>" >> $OUTPUT
          echo "<LI>$path</LI>" >> $OUTPUT
          echo "</UL>" >> $OUTPUT
        else
          echo "<LI><a href=\"http://artifacts.opnfv.org/$filepath\">"$filepath"</a></LI>" >> $OUTPUT
        fi

done


gsutil cp $OUTPUT gs://artifacts.opnfv.org/

gsutil -m setmeta \
     -h "Content-Type:text/html" \
     -h "Cache-Control:private, max-age=0, no-transform" \
      gs://artifacts.opnfv.org/$OUTPUT \

# Gerate html for logs

for project in functest vswitchperf
do
    for index in $(gsutil ls -l gs://artifacts.opnfv.org/logs/"$project"/ |awk 'NF==1'| sed s,gs://artifacts.opnfv.org/,, )
    do

        OUTPUT="$(echo ${index%/*}.html | sed s,/,_,g)"
        echo $OUTPUT
        rm -f $OUTPUT


            for filepath in $(gsutil ls -R gs://artifacts.opnfv.org/"$index" | sed s,gs://artifacts.opnfv.org/,, | grep -v "favicon.ico" | grep -v "gsutil" ); do
            echo $filepath

            if [[ $filepath =~ "/:" ]]; then
              path=$(echo $filepath| sed s,/:,,g)
              echo "<UL>" >> $OUTPUT
              echo "<LI>$path</LI>" >> $OUTPUT
              echo "</UL>" >> $OUTPUT
            else
              echo "<LI><a href=\"http://artifacts.opnfv.org/$filepath\">"$filepath"</a></LI>" >> $OUTPUT
            fi


            done


        gsutil cp $OUTPUT gs://artifacts.opnfv.org/

        gsutil -m setmeta \
             -h "Content-Type:text/html" \
             -h "Cache-Control:private, max-age=0, no-transform" \
              gs://artifacts.opnfv.org/$OUTPUT \


    done
done



OUTPUT="index.html"
echo "<p> Generated on $(date) </p>" >> $OUTPUT

cat <<EOF >> $OUTPUT
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-831873-26', 'auto');
ga('send', 'pageview');
</script>
EOF

#copy and uplad index file genrated in first step, last
gsutil cp $OUTPUT gs://artifacts.opnfv.org/

gsutil -m setmeta \
     -h "Content-Type:text/html" \
     -h "Cache-Control:private, max-age=0, no-transform" \
      gs://artifacts.opnfv.org/$OUTPUT \