mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-29 13:21:01 +00:00
Merge pull request #1931 from github/travis-container
Opt in to container-based Travis CI builds
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -1,12 +1,5 @@
|
|||||||
before_install:
|
sudo: false
|
||||||
- git fetch origin master:master
|
before_install: script/travis/before_install
|
||||||
- git fetch origin v2.0.0:v2.0.0
|
|
||||||
- git fetch origin test/attributes:test/attributes
|
|
||||||
- git fetch origin test/master:test/master
|
|
||||||
- sudo apt-get install libicu-dev -y
|
|
||||||
- git submodule init
|
|
||||||
- git submodule sync --quiet
|
|
||||||
- script/fast-submodule-update
|
|
||||||
rvm:
|
rvm:
|
||||||
- 1.9.3
|
- 1.9.3
|
||||||
- 2.0.0
|
- 2.0.0
|
||||||
@@ -16,3 +9,4 @@ notifications:
|
|||||||
disabled: true
|
disabled: true
|
||||||
git:
|
git:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
cache: bundler
|
||||||
|
|||||||
20
script/travis/before_install
Executable file
20
script/travis/before_install
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
# Fetch all commits/refs needed to run our tests.
|
||||||
|
git fetch origin master:master v2.0.0:v2.0.0 test/attributes:test/attributes test/master:test/master
|
||||||
|
|
||||||
|
script/vendor-deb libicu48 libicu-dev
|
||||||
|
if ruby -e 'exit RUBY_VERSION >= "2.0" && RUBY_VERSION < "2.1"'; then
|
||||||
|
# Workaround for https://bugs.ruby-lang.org/issues/8074. We can't use this
|
||||||
|
# solution on all versions of Ruby due to
|
||||||
|
# https://github.com/bundler/bundler/pull/3338.
|
||||||
|
bundle config build.charlock_holmes --with-icu-include=$(pwd)/vendor/debs/include --with-icu-lib=$(pwd)/vendor/debs/lib
|
||||||
|
else
|
||||||
|
bundle config build.charlock_holmes --with-icu-dir=$(pwd)/vendor/debs
|
||||||
|
fi
|
||||||
|
|
||||||
|
git submodule init
|
||||||
|
git submodule sync --quiet
|
||||||
|
script/fast-submodule-update
|
||||||
13
script/vendor-deb
Executable file
13
script/vendor-deb
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
mkdir -p vendor/apt vendor/debs
|
||||||
|
|
||||||
|
(cd vendor/apt && apt-get --assume-yes download "$@")
|
||||||
|
|
||||||
|
for deb in vendor/apt/*.deb; do
|
||||||
|
ar p $deb data.tar.gz | tar -vzxC vendor/debs --strip-components=2
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user