Remove old Travis CI (Linux, macOS)

This commit is contained in:
Simran Spiller
2020-10-29 10:54:16 +01:00
parent 34cb7c96de
commit 0b3dd128e1
5 changed files with 0 additions and 195 deletions
-44
View File
@@ -1,44 +0,0 @@
language: cpp
matrix:
include:
- os: linux
env: ARCH=x86_64
compiler: gcc
sudo: require
dist: xenial
- os: osx
osx_image: xcode10.3
before_cache:
- brew cleanup
cache:
directories:
- $HOME/Library/Caches/Homebrew
addons:
homebrew:
packages:
- ffmpeg
- qt5
- grep
- opencolorio
- openimageio
update: true
# Can't build on Windows - affected by https://travis-ci.community/t/current-known-issues-please-read-this-before-posting-a-new-topic/264/10
# - os: windows
before_install:
- source ./.travis/before_install.sh
install:
- source ./.travis/install.sh
script:
- source ./.travis/script.sh
after_success:
- source ./.travis/after_success.sh
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/
-40
View File
@@ -1,40 +0,0 @@
#!/bin/bash
# Check if there's been a new commit since this build, and if so don't upload it
GREP_PATH=grep
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
GREP_PATH=ggrep
fi
# Get current repo commit from GitHub (problems arose from trying to pipe cURL directly into grep, so we buffer it through a file)
REMOTE=$(curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/olive-editor/olive/commits/master | $GREP_PATH -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 --)
LOCAL=$(git rev-parse HEAD)
if [ "$TRAVIS_TAG" != "" ] || [ "$REMOTE" == "$LOCAL" ]
then
echo "[INFO] Still current. Uploading..."
export UPLOADTOOL_BODY=$(cat release.txt)
# Retrieve upload tool
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
bash upload.sh Olive*.zip
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
bash upload.sh Olive*.AppImage*
fi
else
echo "[INFO] No longer current. $REMOTE vs $LOCAL - aborting upload."
fi
-17
View File
@@ -1,17 +0,0 @@
#!/bin/bash
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# Qt 5.11
sudo add-apt-repository ppa:beineri/opt-qt-5.11.0-xenial -y
# FFmpeg 4.x
sudo add-apt-repository ppa:jonathonf/ffmpeg-4 -y
# OpenColorIO
sudo add-apt-repository ppa:olive-editor/opencolorio -y
# Update apt
sudo apt-get update -qq
fi
-18
View File
@@ -1,18 +0,0 @@
#!/bin/bash
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PATH="/usr/local/opt/qt/bin:/usr/local/opt/python@2/libexec/bin:$PATH"
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -y -o Dpkg::Options::="--force-overwrite" install qt511base qt511multimedia qt511svg qt511tools libavformat-dev libavcodec-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev libopencolorio-dev libopenimageio-dev libgl1-mesa-dev
source /opt/qt*/bin/qt*-env.sh
# Acquire latest cmake (apt somehow gets the wrong version?)
wget -c https://github.com/Kitware/CMake/releases/download/v3.17.2/cmake-3.17.2-Linux-x86_64.sh -O cmake.sh
chmod +x cmake.sh
./cmake.sh --skip-license --prefix=cmake --exclude-dir
export PATH=$PWD/cmake/bin:$PATH
fi
-76
View File
@@ -1,76 +0,0 @@
#!/bin/bash
# linuxdeployqt uses this for naming the file
export VERSION=$(git rev-parse --short=8 HEAD)
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# Generate Makefile
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo
# Make
make -j$(sysctl -n hw.ncpu)
# Handle compile failure
if [ "$?" != "0" ]
then
exit 1
fi
BUNDLE_NAME=Olive.app
# Move bundle to working directory
mv app/$BUNDLE_NAME .
# Move Qt deps into bundle
macdeployqt $BUNDLE_NAME
# Fix other deps that macdeployqt missed
curl -fLOSs --retry 3 https://github.com/arl/macdeployqtfix/raw/master/macdeployqtfix.py
python2 macdeployqtfix.py $BUNDLE_NAME/Contents/MacOS/Olive /usr/local/Cellar/qt5/5.*/
# Fix deps on crash handler
python2 macdeployqtfix.py $BUNDLE_NAME/Contents/MacOS/olive-crashhandler /usr/local/Cellar/qt5/5.*/
# Fix OpenEXR libs that seem to be missed by both macdeployqt _and_ macdeployqtfix
cd $BUNDLE_NAME/Contents/Frameworks
exrlib=(libImath-*.dylib libHalf-*.dylib libIexMath-*.dylib libIex-*.dylib libIlmThread-*.dylib)
for a in ${exrlib[@]}; do
for b in ${exrlib[@]}; do
install_name_tool -change @rpath/$b @executable_path/../Frameworks/$b $a
done
done
cd ../../..
# Distribute in zip
zip -r Olive-$VERSION-macOS.zip $BUNDLE_NAME
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# Generate Makefile
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo
# Make
make -j$(nproc)
# Handle compile failure
if [ "$?" != "0" ]
then
exit 1
fi
# Use `make install` on `appdir` to place files in the correct place
make DESTDIR=appdir install
# Download linuxdeployqt
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
# Use linuxdeployqt to set up dependencies
./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/local/share/applications/*.desktop -extra-plugins=imageformats/libqsvg.so -appimage
fi