diff options
author | Jack Moffitt <jack@metajack.im> | 2014-06-19 09:43:48 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2014-06-19 09:43:48 -0600 |
commit | 54f01aa4f4b58eba480c3c5c120c16a62372fc6c (patch) | |
tree | 6a2194530a7c7270d60cc99989e9fc628602c4ab | |
parent | bace9fb485438b9b61831d6013c07a273213c7fa (diff) | |
parent | 94415ce9960e0b31fde509a031ec126a6d266243 (diff) | |
download | servo-54f01aa4f4b58eba480c3c5c120c16a62372fc6c.tar.gz servo-54f01aa4f4b58eba480c3c5c120c16a62372fc6c.zip |
Merge pull request #2671 from larsbergstrom/new_snapshots
Update to use snapshot builds
-rw-r--r-- | .travis.yml | 29 | ||||
-rwxr-xr-x | configure | 21 | ||||
-rw-r--r-- | mk/check.mk | 14 | ||||
m--------- | src/compiler/rust | 0 | ||||
-rw-r--r-- | src/compiler/rust-snapshot-hash | 1 | ||||
-rwxr-xr-x | travis.linux.install.deps.sh | 5 | ||||
-rwxr-xr-x | travis.linux.script.sh | 3 | ||||
-rwxr-xr-x | travis.osx.install.deps.sh | 2 | ||||
-rwxr-xr-x | travis.osx.script.sh | 3 |
9 files changed, 74 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..d809e16f41d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +language: c + +os: +- linux +- osx + +install: +- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./travis.linux.install.deps.sh; fi +- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./travis.osx.install.deps.sh; fi + +before_script: + - mkdir -p build + +script: +- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then ./travis.linux.script.sh; fi +- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./travis.osx.script.sh; fi + +git: + submodules: true + +notifications: + email: false + +branches: + only: + - travis + - master + +after_success: diff --git a/configure b/configure index 28237a8e4e2..de08902deb6 100755 --- a/configure +++ b/configure @@ -401,6 +401,26 @@ probe CFG_CLANG clang++ CFG_BUILD_DIR="${CFG_BUILD_HOME}${CFG_TARGET}/" make_dir "${CFG_BUILD_DIR}" +SNAPSHOT_VERSION=$(cat ${CFG_SRC_DIR}/src/compiler/rust-snapshot-hash | rev | cut -d/ -f1 | rev) +if [ $CFG_OSTYPE = "linux-androideabi" ] +then +CFG_TREE_RUST=1 # We don't yet have Android snapshots +fi +if [ -z "$CFG_TREE_RUST" ] +then + if ! [ -f ${CFG_BUILD_DIR}/rust_snapshot/${SNAPSHOT_VERSION}-${DEFAULT_TARGET}/bin/rustc -a -f ${CFG_BUILD_DIR}/src/compiler/rust-snapshot-hash-stamp -a -z "$(diff ${CFG_BUILD_DIR}/src/compiler/rust-snapshot-hash-stamp ${CFG_SRC_DIR}/src/compiler/rust-snapshot-hash)" ] + then + rm -rf ${CFG_BUILD_DIR}/rust_snapshot + make_dir ${CFG_BUILD_DIR}/rust_snapshot + make_dir ${CFG_BUILD_DIR}/src/compiler/rust + SNAPSHOT_URL="http://servo-rust.s3.amazonaws.com/$(cat ${CFG_SRC_DIR}/src/compiler/rust-snapshot-hash)-${DEFAULT_TARGET}.tar.gz" + step_msg "Fetching snapshot from ${SNAPSHOT_URL}" + curl -o ${CFG_BUILD_DIR}/rust_snapshot/snapshot.tgz ${SNAPSHOT_URL} + tar -zxf ${CFG_BUILD_DIR}/rust_snapshot/snapshot.tgz -C ${CFG_BUILD_DIR}/rust_snapshot/ + cp -f ${CFG_SRC_DIR}/src/compiler/rust-snapshot-hash ${CFG_BUILD_DIR}/src/compiler/rust-snapshot-hash-stamp + fi + CFG_LOCAL_RUST_ROOT=${CFG_BUILD_DIR}/rust_snapshot/${SNAPSHOT_VERSION}-${DEFAULT_TARGET} +fi if [ ! -z "$CFG_LOCAL_RUST_ROOT" ] then @@ -560,6 +580,7 @@ putvar CFG_RUST_HOME putvar CFG_PATH putvar CFG_LOCAL_RUSTC putvar CFG_LOCAL_RUST_ROOT +putvar CFG_TREE_RUST putvar CFG_ENABLE_DEBUG putvar CFG_ENABLE_DEBUG_SKIA diff --git a/mk/check.mk b/mk/check.mk index 7dd787624f5..0242b7cacef 100644 --- a/mk/check.mk +++ b/mk/check.mk @@ -79,13 +79,19 @@ check-servo: $(foreach lib_crate,$(SERVO_LIB_CRATES),check-servo-$(lib_crate)) s @$(call E, check: servo) $(Q)./servo-test -.PHONY: check-ref -check-ref: reftest - @$(call E, check: reftests with GPU rendering) - $(Q)./reftest $(S)src/test/ref/*.list +.PHONY: check-ref-cpu +check-ref-cpu: reftest @$(call E, check: reftests with CPU rendering) $(Q)./reftest $(S)src/test/ref/*.list -- -c +.PHONY: check-ref-gpu +check-ref-gpu: reftest + @$(call E, check: reftests with GPU rendering) + $(Q)./reftest $(S)src/test/ref/*.list + +.PHONY: check-ref +check-ref: check-ref-cpu check-ref-gpu + .PHONY: check-content check-content: contenttest @$(call E, check: contenttests) diff --git a/src/compiler/rust b/src/compiler/rust -Subproject d35a38087088301aa58f244ae99d48b282df6fb +Subproject 0935beba717bf6d3b54ad1b2eace359dea5dfca diff --git a/src/compiler/rust-snapshot-hash b/src/compiler/rust-snapshot-hash new file mode 100644 index 00000000000..76aadf38dd4 --- /dev/null +++ b/src/compiler/rust-snapshot-hash @@ -0,0 +1 @@ +0935beba717bf6d3b54ad1b2eace359dea5dfca0/rust-0.11.0-pre diff --git a/travis.linux.install.deps.sh b/travis.linux.install.deps.sh new file mode 100755 index 00000000000..a7e7b042d36 --- /dev/null +++ b/travis.linux.install.deps.sh @@ -0,0 +1,5 @@ +sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y +sudo apt-get update -q +sudo apt-get install -qq --force-yes -y autoconf2.13 gperf libxxf86vm-dev libglfw-dev libstdc++6-4.7-dev +echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections +sudo apt-get install ttf-mscorefonts-installer > /dev/null diff --git a/travis.linux.script.sh b/travis.linux.script.sh new file mode 100755 index 00000000000..e8e8205a4bd --- /dev/null +++ b/travis.linux.script.sh @@ -0,0 +1,3 @@ +cd build +../configure +make -j2 && make check-servo diff --git a/travis.osx.install.deps.sh b/travis.osx.install.deps.sh new file mode 100755 index 00000000000..9833b2c39a5 --- /dev/null +++ b/travis.osx.install.deps.sh @@ -0,0 +1,2 @@ +brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb +brew install automake libtool pkg-config diff --git a/travis.osx.script.sh b/travis.osx.script.sh new file mode 100755 index 00000000000..6eaa0885116 --- /dev/null +++ b/travis.osx.script.sh @@ -0,0 +1,3 @@ +cd build +../configure +make -j2 && make check-servo && make check-content && make check-ref-cpu |