Commit d4f58555 authored by 神楽坂玲奈's avatar 神楽坂玲奈

travis

parent e083d4fe
......@@ -24,13 +24,24 @@ before_install:
- openssl aes-256-cbc -K $encrypted_c268b785a48e_key -iv $encrypted_c268b785a48e_iv -in ssh-key.enc -out $HOME/.ssh/id_ecdsa -d
- chmod 600 $HOME/.ssh/id_ecdsa
- git submodule update --init --recursive
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install premake freetype libevent sqlite irrlicht lua; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install premake freetype libevent sqlite irrlicht lua; fi
script:
- premake4 gmake
- cd build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sed -i 's/-llua/-llua5.2/g' ygopro.make; fi
- make config=release
- cd ..
- wget https://mycard.moe/cards.cdb
- mkdir -p pics; wget https://github.com/mycard/ygopro-images/archive/zh-CN.tar.gz | tar zfx --strip-components 1 -C pics -
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; mv build/release/ygopro ./; strip ygopro; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; XZ_OPT=-9e tar -Jcvf ygopro.tar.xz LICENSE README.md lflist.conf script strings.conf system.conf textures cards.cdb pics; fi
deploy:
provider: releases
file: "ygopro.tar.xz"
api_key: $GH_TOKEN
skip_cleanup: true
on:
tags: true
branches:
only:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment