Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We don't use Travis anymore.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 20 Jul 2021 14:13:46 +0000 (16:13 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 21 Jul 2021 21:25:15 +0000 (23:25 +0200)
Git can be used to recover these files if they're needed in the future.

.travis.yml [deleted file]
README.md
doc/doxygen/inside_release.doc
doc/doxygen/inside_tests.doc
sonar-project.properties
tools/internal/check_dist_archive.exclude
tools/internal/travis-sonarqube.sh [deleted file]
tools/jenkins/project_description.sh

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index 8f1a2bd..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-# NS3 is disabled because the version in ubuntu precise does not lead
-# to the same timings (precision error?)
-# Reenable with
-#   cmake -Denable_ns3
-#   apt-get libns3-dev ns3
-#
-#
-dist: bionic
-language: cpp
-compiler:
-   - gcc
-#  - clang
-jdk:
-   - openjdk11
-addons:
-  apt:
-    packages:
-    - cmake
-    - valgrind
-    - gfortran
-    - libboost-dev
-    - libboost-all-dev
-    - libdw-dev
-    - libevent-dev
-    - libunwind8-dev
-    - pybind11-dev
-  homebrew:
-    packages:
-    - python
-  coverity_scan:
-    project:
-      name: "simgrid/simgrid"
-      description: "Build submitted via Travis CI"
-    notification_email: martin.quinson@ens-rennes.fr
-    build_command_prepend: "cmake -Denable_documentation=OFF -Denable_coverage=ON -Denable_java=OFF -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=OFF ."
-    build_command:   "make VERBOSE=1"
-    branch_pattern: coverity
-
-jobs:
-  include:
-    - os: linux
-      script:
-      - sudo apt-get update -qq
-      - sudo apt-get install cmake valgrind gfortran libboost-dev libboost-all-dev libdw-dev libevent-dev libunwind8-dev pybind11-dev
-      - (cmake -Denable_model-checking=ON  -Denable_documentation=OFF -Denable_coverage=ON -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON -DLTO_EXTRA_FLAG="auto" . || (echo XXX CMakeOutput.log; cat /home/travis/build/simgrid/simgrid/CMakeFiles/CMakeOutput.log; echo XXX CMakeError.log;cat /home/travis/build/simgrid/simgrid/CMakeFiles/CMakeError.log; exit 1))
-      - make -j$(nproc) VERBOSE=1 all && make -j$(nproc) tests && ctest -j$(nproc) --output-on-failure
-    - os: windows
-      script:
-      - mv "C:/Program Files/Git/usr/bin/sh.exe" "sh-ignored.exe"
-      - df -h
-      - du -hs /tmp || true
-      - choco install boost-msvc-12 python jdk8
-      - export CC=gcc
-      - export CXX=g++
-      - export PATH='C:\Python39':'C:\local\boost_1_58_0':$PATH
-      - export BOOST_LIBRARYDIR='C:/local/boost_1_58_0/lib64-msvc-12.0'
-      - export BOOST_INCLUDEDIR='C:/local/boost_1_58_0/include'
-      - export JAVA_HOME='C:/Program Files/Java/jdk1.8.0_211'
-      # We need pybind11. SimGrid will pick it automatically if the subdir is here
-      # - git clone --depth=1 https://github.com/pybind/pybind11.git
-      - cmake -G "MinGW Makefiles" -Denable_java=ON -Denable_msg=ON -Denable_lua=OFF -Denable_documentation=OFF -Denable_smpi=OFF -Denable_mallocators=OFF -Denable_lto=OFF .
-      - df -h
-      - du -hs /tmp || true
-      - mingw32-make.exe VERBOSE=1 java-all && ctest --output-on-failure -R java
-      # - mingw32-make.exe VERBOSE=1 python-bindings && ctest --output-on-failure -R python
-      - df -h
-      - du -hc /tmp || true
-    - os: osx
-      osx_image: xcode11.4
-      script:
-      - export LIBRARY_PATH=/usr/local/lib/gcc/9
-      - cmake -Denable_model-checking=OFF -Denable_documentation=OFF -Denable_coverage=ON -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=ON -Denable_lto=OFF .
-      - make -j2 VERBOSE=1 all && make -j2 tests && ctest -j2 --output-on-failure
-notifications:
-  recipients:
-    - martin.quinson@ens-rennes.fr
-  email:
-    on_success: change
-    on_failure: always
-  irc:
-    on_success: change
-    on_failure: always
-    channels:
-      - "irc.debian.org#simgrid"
-  template:
-    - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"
index 1a9091e..9268e19 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
 [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
 [![Build Status](https://ci.inria.fr/simgrid/buildStatus/icon?job=SimGrid)](https://ci.inria.fr/simgrid/job/SimGrid/)
-[![Travis Status](https://img.shields.io/travis/simgrid/simgrid/master.svg?logo=travis)](https://travis-ci.org/simgrid/simgrid)
 [![AppVeyor Status](https://ci.appveyor.com/api/projects/status/gvcssh340fwtoc35?svg=true)](https://ci.appveyor.com/project/mquinson/simgrid)
 [![SonarCloud Status](https://sonarcloud.io/api/project_badges/measure?project=simgrid_simgrid&metric=alert_status)](https://sonarcloud.io/dashboard/?id=simgrid_simgrid)
 [![Doc](https://readthedocs.org/projects/pip/badge/?version=stable)](https://simgrid.org/doc/latest/)
index db98d17..00ee2d3 100644 (file)
@@ -22,7 +22,7 @@ Please apply the following checklist before releasing.
   - The release dub name matches the one given in ChangeLog file
 - Tests
   - The "make distcheck" target works (tested by jenkins)
-  - All tests pass on everything on ci + travis/macOS + AppVeyor
+  - All tests pass on everything on ci + AppVeyor
   - Tutorials and derivative projects build correctly
     https://framagit.org/simgrid/simgrid-template-s4u/pipelines
     https://framagit.org/simgrid/external-projects-ci/pipelines
index e7aba36..43617ab 100644 (file)
@@ -138,9 +138,7 @@ We use <a href="https://ci.inria.fr/simgrid/">Jenkins on Inria
 servers</a> as a workhorse: it runs all of our tests for many
 configurations. It takes a long time to answer, and it often reports
 issues but when it's green, then you know that SimGrid is very fit!
-We use <a href="https://travis-ci.org/simgrid/simgrid">Travis</a> to
-quickly run some tests on Linux and Mac. It answers quickly but may
-miss issues. And we use <a href="https://ci.appveyor.com/project/mquinson/simgrid">AppVeyor</a>
+We use <a href="https://ci.appveyor.com/project/mquinson/simgrid">AppVeyor</a>
 to build and somehow test SimGrid on windows. 
 
 @subsection inside_tests_jenkins Jenkins on the Inria CI servers
@@ -205,23 +203,9 @@ pkg install boost-libs cmake openjdk8 automake libxslt libxml2 libunwind git hto
 brew install cmake boost libunwind-headers libxslt git python3 
 @endverbatim
 
-@subsection inside_tests_travis Travis
-
-Travis is a free (as in free beer) Continuous Integration system that
-open-sourced project can use freely. It is very well integrated in the
-GitHub ecosystem. There is a plenty of documentation out there. Our
-configuration is in the file .travis.yml as it should be, and the
-result is here: https://travis-ci.org/simgrid/simgrid
-
-The .travis.yml configuration file can be useful if you fail to get
-SimGrid to compile on modern mac systems. We use the @c brew package
-manager there, and it works like a charm.
-
 @subsection inside_tests_appveyor AppVeyor
 
-AppVeyor aims at becoming the Travis of Windows. It is maybe less
-mature than Travis, or maybe it is just that I'm less trained in
-Windows. Our configuration is in the file appveyor.yml as it should
+Our configuration is in the file appveyor.yml as it should
 be, and the result is here: https://ci.appveyor.com/project/mquinson/simgrid
 
 We use @c Choco as a package manager on AppVeyor, and it is sufficient
@@ -252,7 +236,4 @@ open-source project can use it at no cost. That is what we are doing.
 Don't miss the great looking dashboard here: 
 https://sonarcloud.io/dashboard?id=simgrid_simgrid
 
-This tool is enriched by the script @c tools/internal/travis-sonarqube.sh 
-that is run from @c .travis.yml
-
 */
index 70aada3..b87ed17 100644 (file)
@@ -208,9 +208,6 @@ sonar.sourceEncoding=UTF-8
 sonar.java.source=8
 sonar.java.binaries=CMakeFiles/simgrid-java_jar.dir,examples/deprecated/java
 
-# Don't talk to me: travis don't like your verbosity
-# sonar.verbose=true
-
 ### NOTE: the following properties are overridden by Jenkins configuration
 ###
 #sonar.java.binaries
index 1b08e65..8cf4bb6 100644 (file)
@@ -21,7 +21,6 @@
 + \.lgtm\.yml
 + \.project
 + \.readthedocs.yml
-+ \.travis\.yml
 + sonar-project\.properties
 
 + contrib/.*
diff --git a/tools/internal/travis-sonarqube.sh b/tools/internal/travis-sonarqube.sh
deleted file mode 100755 (executable)
index eeb0b44..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/env sh
-
-# Install and run SonarQube on travis.
-#
-# Use it as a wrapper to your build command, eg: ./travis-sonarqube.sh make VERBOSE=1
-
-# On macOS or with pull requests, you don't want to run SonarQube but to exec the build command directly.
-
-# Be verbose and fail fast
-set -ex
-
-# Install required software
-installSonarQubeScanner() {
-  SONAR_SCANNER_VERSION=3.2.0.1227
-  export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION
-  rm -rf $SONAR_SCANNER_HOME
-  mkdir -p $SONAR_SCANNER_HOME
-  curl -sSLo $HOME/.sonar/sonar-scanner.zip http://repo1.maven.org/maven2/org/sonarsource/scanner/cli/sonar-scanner-cli/$SONAR_SCANNER_VERSION/sonar-scanner-cli-$SONAR_SCANNER_VERSION.zip
-  unzip $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
-  rm $HOME/.sonar/sonar-scanner.zip
-  export PATH=$SONAR_SCANNER_HOME/bin:$PATH
-  export SONAR_SCANNER_OPTS="-server"
-}
-installBuildWrapper() {
-  curl -LsS https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip > build-wrapper-linux-x86.zip
-  unzip build-wrapper-linux-x86.zip
-}
-installSonarQubeScanner
-installBuildWrapper
-
-# triggers the compilation through the build wrapper to gather compilation database
-./build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-outputs "$@"
-
-# Run ctest before sonar to gather coverage some information
-# EDIT: Don't run the tests on travis because they take too much time.
-#set +e
-#ctest -j2 --output-on-failure
-#outcome=$?
-#set -e
-outcome=0
-
-# Only run sonar on master (not on pull requests)
-if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
-  exit $outcome
-fi
-
-# generate the gcov files
-#ctest -D ExperimentalCoverage
-
-# and finally execute the actual SonarQube analysis
-# (the SONAR_TOKEN is set from the travis web interface, to not expose it with an ongoing "set -x")
-# See https://docs.travis-ci.com/user/sonarqube/ for more info on tokens
-# don't show the token in the logs
-set +x
-sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN 2>&1 \
-  | grep -v 'INFO: Parsing /home/travis/build/simgrid/simgrid/Testing/CoverageInfo'  \
-  | grep -v 'WARN: File not analysed by Sonar, so ignoring coverage: /usr/include/'
-
-exit $outcome
index 529ed19..cd019ca 100755 (executable)
@@ -173,41 +173,6 @@ do
 done
 
 
-#Travis - get ID of the last jobs with the API
-BUILD_NUM=$(curl -s 'https://api.travis-ci.org/repos/simgrid/simgrid/builds?limit=1' | grep -o '^\[{"id":[0-9]*,' | grep -o '[0-9]' | tr -d '\n')
-BUILDS=($(curl -s https://api.travis-ci.org/repos/simgrid/simgrid/builds/"${BUILD_NUM}" | grep -o '{"id":[0-9]*,' | grep -o '[0-9]*'| tail -n 3))
-OS=($(curl -s https://api.travis-ci.org/repos/simgrid/simgrid/builds/"${BUILD_NUM}" | grep -o '"os":"[a-z]*",' | sed  's/"os":"\([a-z]*\)",/\1/g'| tail -n 3))
-
-for id in "${!BUILDS[@]}"
-do
-    wget --quiet https://api.travis-ci.org/v3/job/"${BUILDS[$id]}"/log.txt -O ./consoleText >/dev/null 2>&1
-    sed -i -e "s/\r//g" ./consoleText
-
-    if [ "${OS[$id]}" == "linux" ]; then
-      node="travis-linux (<a href=\"https://travis-ci.org/simgrid/simgrid/jobs/${BUILDS[$id]}\">log</a>)"
-      os="Ubuntu  <a href=\"https://docs.travis-ci.com/user/reference/bionic/\">18.04 bionic</a>"
-    elif [ "${OS[$id]}" == "osx" ]; then
-      node="travis-mac (<a href=\"https://travis-ci.org/simgrid/simgrid/jobs/${BUILDS[$id]}\">log</a>)"
-      os="Mac OS X <a href=\"https://docs.travis-ci.com/user/reference/osx/\">Catalina (10.15)</a> "
-    elif [ "${OS[$id]}" == "windows" ]; then
-      node="travis-windows (<a href=\"https://travis-ci.org/simgrid/simgrid/jobs/${BUILDS[$id]}\">log</a>)"
-      os="Windows <a href=\"https://docs.travis-ci.com/user/reference/windows/\">Server 1809</a>"
-    fi
-    boost=$(get_boost)
-    compiler=$(get_compiler)
-    java=$(get_java)
-    cmake=$(get_cmake)
-    ns3=$(get_ns3)
-    py=$(get_python)
-    success=$(grep -m 1 "Your build exited with 0" ./consoleText)
-    ball="red.png"
-    if [ -n "$success" ]; then
-      ball="blue.png"
-    fi
-    echo "<tr> <td class=\"matrix-leftcolumn\">$node</td><td class=\"matrix-cell\" style=\"text-align:left\">$os</td><td class=\"matrix-cell\" style=\"text-align:left\">$compiler</td><td class=\"matrix-cell\" style=\"text-align:left\">$boost</td><td class=\"matrix-cell\" style=\"text-align:left\">$java</td><td class=\"matrix-cell\" style=\"text-align:left\">$cmake</td><td class=\"matrix-cell\" style=\"text-align:center\">$ns3</td><td class=\"matrix-cell\" style=\"text-align:center\">$py</td><td class=\"matrix-cell\" style=\"text-align:center\"><img src=https://ci.inria.fr/simgrid/images/24x24/${ball}></td><td class=\"matrix-cell\" style=\"text-align:center\"><img src=https://ci.inria.fr/simgrid/images/24x24/grey.png></td></tr>"
-    rm consoleText
-done
-
 #Appveyor - get ID of the last job with the API
 BUILD_ID=$(curl -s "https://ci.appveyor.com/api/projects/mquinson/simgrid" | grep -o '\[{"jobId":"[a-zA-Z0-9]*",' | sed "s/\[{\"jobId\":\"//" | sed "s/\",//")
 wget --quiet https://ci.appveyor.com/api/buildjobs/"$BUILD_ID"/log -O ./consoleText >/dev/null 2>&1