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

Feature/pnm #202

Merged
merged 24 commits into from
Nov 16, 2023

Merge branch 'feature/pnm' of https://github.com/HappySeaFox/sail int…

cfa267f
Select commit
Loading
Failed to load commit list.
Merged

Feature/pnm #202

Merge branch 'feature/pnm' of https://github.com/HappySeaFox/sail int…
cfa267f
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request succeeded Nov 16, 2023 in 46m 56s

Build Passed

The build passed, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #202 Feature/pnm.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has three jobs, running in parallel.

Job Xcode ENV OS State
998.1 Windows Server PATH="/c/SAIL/bin:$PATH" windows passed
998.2 Ubuntu 22.04 Jammy Linux passed
998.3 macOS 12.6 xcode14.2 CMAKE_PREFIX_PATH="/usr/local/opt/jpeg-turbo;$CMAKE_PREFIX_PATH" macOS passed

Build Configuration

Build Option Setting
Language C++
Operating System Linux (Xenial)
Build Configuration
{
  "language": "cpp",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "notifications": {
    "email": [
      {
        "enabled": false
      }
    ]
  },
  "addons": {
    "homebrew": {
      "packages": [
        "sdl2",
        "giflib",
        "jasper",
        "jpeg-turbo",
        "jpeg-xl",
        "libavif",
        "libomp",
        "libpng",
        "libtiff",
        "webp"
      ]
    },
    "apt": {
      "packages": [
        "libavif-dev",
        "libgif-dev",
        "libjpeg-dev",
        "libpng-dev",
        "libsdl2-dev",
        "libtiff-dev",
        "libwebp-dev"
      ],
      "update": true
    }
  },
  "jobs": {
    "include": [
      {
        "os": "windows",
        "name": "Windows Server",
        "env": [
          {
            "PATH": "\"/c/SAIL/bin:$PATH\""
          }
        ],
        "cache": {
          "directories": [
            "extra/B"
          ]
        }
      },
      {
        "os": "linux",
        "dist": "jammy",
        "name": "Ubuntu 22.04 Jammy"
      },
      {
        "os": "osx",
        "osx_image": "xcode14.2",
        "name": "macOS 12.6",
        "env": [
          {
            "CMAKE_PREFIX_PATH": "\"/usr/local/opt/jpeg-turbo;$CMAKE_PREFIX_PATH\""
          },
          {
            "OpenMP_ROOT": "/usr/local/opt/libomp"
          }
        ]
      }
    ]
  },
  "before_script": [
    "case \"$TRAVIS_OS_NAME\" in\n  windows)\n    # Build non-existing extra libs\n    if [ -d extra/B/bin ]; then\n      extra_bin_time=$(stat -c %Y extra/B/bin)\n      build_script_time=$(git log --pretty=format:%cd -n 1 --date=unix --date-order -- extra/build)\n\n      if [ $build_script_time -gt $extra_bin_time ]; then\n        extra/build\n      fi\n    else\n      extra/build\n    fi\n  ;;\nesac"
  ],
  "script": [
    "fail_on_error()\n{\n  if [ $# -eq 0 ]; then\n    echo \"Error: No arguments given for fail_on_error()\" >&2\n    exit 1\n  fi\n\n  set -e\n  \"$@\"\n  set +e\n}\n\ntest_external_windows()\n{\n  local project_path=\"$1\"\n  local sail_cmake_path=\"$2\"\n  local build_type=\"$3\"\n  local old_dir=\"$PWD\"\n\n  echo\n  echo \"External Windows Test '$project_path' '$build_type'\"\n  echo\n\n  cd \"$TRAVIS_BUILD_DIR\"\n\n  cd \"$project_path\"\n  rm -rf build\n  mkdir build\n  cd build\n\n  fail_on_error cmake -A x64 -DSAIL_DEV=ON -DCMAKE_PREFIX_PATH=\"$sail_cmake_path\" ..\n  fail_on_error cmake --build . --config $build_type\n\n  cd \"$old_dir\"\n}\n\ntest_external_unix()\n{\n  local project_path=\"$1\"\n  local build_type=\"$2\"\n  local exe=\"$3\"\n  local old_dir=\"$PWD\"\n\n  echo\n  echo \"External Unix Test '$project_path' '$build_type'\"\n  echo\n\n  cd \"$TRAVIS_BUILD_DIR\"\n\n  cd \"$project_path\"\n  rm -rf build\n  mkdir build\n  cd build\n\n  fail_on_error cmake -DSAIL_DEV=ON -DCMAKE_BUILD_TYPE=\"$build_type\" ..\n  fail_on_error cmake --build .\n  fail_on_error \"$exe\"\n\n  cd \"$old_dir\"\n}\n\nbuild()\n{\n  echo\n  echo \" *** Building with $@ ***\"\n  echo\n\n  local cmake_parallel_options=\"--parallel 2\"\n\n  eval $@\n\n  cd \"$TRAVIS_BUILD_DIR\"\n\n  rm -rf build\n  mkdir build\n  cd build\n\n  case \"$TRAVIS_OS_NAME\" in\n    windows)\n      git -C .. apply .travis/disable-jpeg-test-files.patch\n\n      CMAKE_INSTALL_PREFIX=\"C:/SAIL\"\n\n      fail_on_error cmake -A x64 -DBUILD_SHARED_LIBS=\"$BUILD_SHARED_LIBS\" -DCMAKE_INSTALL_PREFIX=\"$CMAKE_INSTALL_PREFIX\" \\\n                                 -DSAIL_DEV=ON -DSAIL_COMBINE_CODECS=\"$SAIL_COMBINE_CODECS\" ..\n      fail_on_error cmake --build . --config $CMAKE_BUILD_TYPE $cmake_parallel_options --target install\n\n      cd tests\n      fail_on_error ctest -C $CMAKE_BUILD_TYPE --output-on-failure\n\n      fail_on_error \"$CMAKE_INSTALL_PREFIX/bin/sail\" --version\n\n      test_external_windows \"tests/external/link/c\"   \"$CMAKE_INSTALL_PREFIX/lib/cmake\" \"$CMAKE_BUILD_TYPE\"\n      test_external_windows \"tests/external/link/c++\" \"$CMAKE_INSTALL_PREFIX/lib/cmake\" \"$CMAKE_BUILD_TYPE\"\n\n      rm -rf \"$CMAKE_INSTALL_PREFIX\"\n    ;;\n    osx | linux)\n      CMAKE_INSTALL_PREFIX=\"/usr/local\"\n\n      fail_on_error cmake -DCMAKE_BUILD_TYPE=\"$CMAKE_BUILD_TYPE\" -DCMAKE_INSTALL_PREFIX=\"$CMAKE_INSTALL_PREFIX\" \\\n                          -DBUILD_SHARED_LIBS=\"$BUILD_SHARED_LIBS\" -DSAIL_DEV=ON -DSAIL_COMBINE_CODECS=\"$SAIL_COMBINE_CODECS\" ..\n      fail_on_error cmake --build . $cmake_parallel_options\n      fail_on_error sudo make install\n\n      if [ \"$TRAVIS_OS_NAME\" = \"linux\" ]; then\n          fail_on_error sudo ldconfig\n      fi\n\n      cd tests\n      fail_on_error ctest --output-on-failure\n      cd -\n\n      fail_on_error \"$CMAKE_INSTALL_PREFIX/bin/sail\" --version\n\n      test_external_unix \"tests/external/link/c\"   \"$CMAKE_BUILD_TYPE\" \"./external-c-api-link\"\n      test_external_unix \"tests/external/link/c++\" \"$CMAKE_BUILD_TYPE\" \"./external-c++-api-link\"\n\n      xargs sudo rm -v < install_manifest.txt\n    ;;\n  esac\n}\n\n# DEBUG, SHARED\nbuild CMAKE_BUILD_TYPE=Debug BUILD_SHARED_LIBS=ON\n# DEBUG, SHARED, COMBINED\nbuild CMAKE_BUILD_TYPE=Debug BUILD_SHARED_LIBS=ON SAIL_COMBINE_CODECS=ON\n# DEBUG, STATIC\nif [ \"$TRAVIS_OS_NAME\" != \"windows\" ]; then\n  build CMAKE_BUILD_TYPE=Debug BUILD_SHARED_LIBS=OFF\nfi"
  ]
}