https://github.com/webrecorder/webrecorder-player
Tip revision: 520f82e586917d1dd9e0ca8b06d015edae1c6bf1 authored by Ilya Kreymer on 17 September 2020, 04:08:26 UTC
Update README.md with ReplayWeb.page pointer
Update README.md with ReplayWeb.page pointer
Tip revision: 520f82e
.travis.yml
matrix:
include:
- os: linux
language: node_js
node_js:
- "10"
- os: osx
osx_image: xcode10.2
language: node_js
node_js:
- "10"
env:
global:
- ARTIFACTS_TARGET_PATHS="electron-player/$TRAVIS_BRANCH"
addons:
artifacts:
paths:
- $(ls webrecorder-player-*{dmg,AppImage})
before_install:
- |
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
sed -i'' -E 's/"name": "(.*)"/"name": "\1-linux"/' ./package.json
apt-get -qq update;
sudo apt-get install -y icnsutils graphicsmagick;
FLASH_PLUGIN="https://s3.amazonaws.com/webrecorder-builds/flashplugin/libpepflashplayer.so";
cd plugins;
wget $FLASH_PLUGIN;
cd -;
fi
- |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
sed -i '' -E 's/"name": "(.*)"/"name": "\1-osx"/' ./package.json
FLASH_PLUGIN="https://s3.amazonaws.com/webrecorder-builds/flashplugin/PepperFlashPlayer.plugin.zip";
cd plugins;
wget $FLASH_PLUGIN;
unzip PepperFlashPlayer.plugin.zip;
rm PepperFlashPlayer.plugin.zip;
cd -;
fi
install:
- BUCKET="https://s3.amazonaws.com/webrecorder-builds/webrecorder-player"
- CURRENT_BRANCH="$BUCKET/$TRAVIS_BRANCH/webrecorder-player-$TRAVIS_OS_NAME"
- DEVELOP_BRANCH="$BUCKET/develop/webrecorder-player-$TRAVIS_OS_NAME"
- |
if curl -o /dev/null -s -I -f "$CURRENT_BRANCH"; then
echo "downloading webrecorder artifact: $CURRENT_BRANCH";
curl -o python-binaries/webrecorder_player $CURRENT_BRANCH;
else
echo "downloading webrecorder artifact: $DEVELOP_BRANCH";
curl -o python-binaries/webrecorder_player $DEVELOP_BRANCH;
fi
- chmod +x python-binaries/webrecorder_player
- python-binaries/webrecorder_player -v
- yarn install
- yarn run build
after_failure:
- cat ~/.npm/_logs/*.log
script:
- |
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'prerelease' ]]; then
yarn run release
else
yarn run dist
fi
- mv ./dist/webrecorder-player-* $TRAVIS_BUILD_DIR/