From 292bd5d62f8a1a83155ead3964fb82a6990f2965 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Tue, 18 Feb 2014 13:44:17 -0500 Subject: travis --- .travis.sh | 17 +++++++++++++---- .travis.yml | 2 ++ unrpyc/Makefile | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.travis.sh b/.travis.sh index 018c791..e09102e 100755 --- a/.travis.sh +++ b/.travis.sh @@ -13,12 +13,10 @@ case "$1" in curl http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 | tar -xj curl http://dl.katawa-shoujo.com/gold_1.1/%5B4ls%5D_katawa_shoujo_1.1-%5Blinux-x86%5D%5BB5C707D5%5D.tar.bz2 | tar -xj --strip-components 2 --wildcards "Katawa Shoujo-linux-x86/game/script-a*" "Katawa Shoujo-linux-x86/game/imachine.rpyc" "Katawa Shoujo-linux-x86/game/ui-strings.rpyc" "Katawa Shoujo-linux-x86/game/ui-strings_FR.rpyc" "Katawa Shoujo-linux-x86/game/data.rpa" mv *.rpyc unrpyc + curl https://webp.googlecode.com/files/libwebp-0.4.0.tar.gz | tar -xz ;; install) - curl https://raw.github.com/Lattyware/unrpa/master/unrpa | python2 - -p www/dump -m data.rpa - rm data.rpa - - sudo apt-get install -q autoconf automake build-essential git imagemagick libjpeg-progs libtheora-dev libtool libvpx-dev libx264-dev optipng pkg-config yasm zlib1g-dev + sudo apt-get install -q libjpeg-progs libtheora-dev libvpx-dev libx264-dev webp yasm cd fdk-aac-0.1.3 ./configure --disable-shared @@ -37,6 +35,17 @@ case "$1" in make $MAKEOPTS sudo make install cd .. + + curl https://raw.github.com/Lattyware/unrpa/master/unrpa | python2 - -p www/dump -m data.rpa + rm data.rpa + + cd libwebp-0.4.0 + ./configure + make $MAKEOPTS + sudo make install + cd .. + + sudo npm install -g grunt-cli uglifyjs ;; script) exec ./setup.sh "$@" diff --git a/.travis.yml b/.travis.yml index 8b3ad0c..e22ed09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,6 @@ language: c +python: + - "3.3" env: MINIMAL=1 CFLAGS="-O2 -march=native -pipe" CXXFLAGS="-O2 -march=native -pipe" before_install: ./.travis.sh before_install install: ./.travis.sh install diff --git a/unrpyc/Makefile b/unrpyc/Makefile index ee0ef42..044a2bd 100644 --- a/unrpyc/Makefile +++ b/unrpyc/Makefile @@ -1,6 +1,6 @@ GZIP := $(shell ./find-gzip.sh) -TARGETS := script.json script.json.gz imachine.json imachine.json.gz imachine_replay.json imachine_replay.json.gz ui-strings.json ui-strings.json.gz ui-strings_FR.json ui-strings_FR.json.gz +TARGETS := script.json script.json.gz imachine.json imachine.json.gz ui-strings.json ui-strings.json.gz ui-strings_FR.json ui-strings_FR.json.gz all: $(TARGETS) -- cgit v1.2.3-70-g09d2