-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a279a49
commit 6d53363
Showing
6 changed files
with
113 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
language: generic | ||
|
||
env: | ||
global: | ||
- CO="chromium/3029" | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
env: BUILD_PLATFORM="Linux-x64" Configuration="Debug" | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
env: BUILD_PLATFORM="Linux-x64" Configuration="Release" | ||
- os: osx | ||
osx_image: xcode7.3 | ||
env: BUILD_PLATFORM="Darwin-x64" Configuration="Debug" | ||
- os: osx | ||
osx_image: xcode7.3 | ||
env: BUILD_PLATFORM="Darwin-x64" Configuration="Release" | ||
|
||
install: | ||
- ./1-install-deps-travis.sh | ||
- export PATH=/data/bin:$PATH | ||
|
||
script: | ||
- echo Building ${CO} | ||
- git clone https://github.com/google/angle.git | ||
- wget https://storage.googleapis.com/chrome-infra/depot_tools.zip | ||
- 7z x depot_tools.zip -odepot_tools | ||
- export PATH=$(pwd)/depot_tools:$PATH | ||
- gclient | ||
- export GYP_GENERATORS=ninja | ||
- cd angle | ||
- git checkout ${CO} | ||
- python scripts/bootstrap.py | ||
- gclient sync | ||
- git checkout ${CO} | ||
- ninja -C "out/${Configuration}" | ||
- cd .. | ||
|
||
after_success: | ||
- cd angle/out | ||
- INSTALL_DIR="${Configuration}" COMMIT_ID="${TRAVIS_COMMIT}" RELEASE_ZIP="${BUILD_PLATFORM}-${Configuration}" ../../3-release-travis.sh | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -x | ||
set -e | ||
set -u | ||
|
||
sudo mkdir -p /data/bin | ||
sudo chmod uga+rwx /data/bin | ||
|
||
GITHUB_RELEASE_TOOL_USER="paulthomson" | ||
GITHUB_RELEASE_TOOL_VERSION="v1.0.9.1" | ||
|
||
|
||
if [ "$(uname)" == "Darwin" ]; | ||
then | ||
brew install p7zip | ||
GITHUB_RELEASE_TOOL_ARCH="darwin_amd64" | ||
fi | ||
|
||
if [ "$(uname)" == "Linux" ]; | ||
then | ||
sudo apt-get update | ||
sudo apt-get -y install g++ git wget zip tar p7zip-full libxi-dev libgl1-mesa-dev libpci-dev | ||
GITHUB_RELEASE_TOOL_ARCH="linux_amd64" | ||
fi | ||
|
||
pushd /data/bin | ||
wget "https://github.com/${GITHUB_RELEASE_TOOL_USER}/github-release/releases/download/${GITHUB_RELEASE_TOOL_VERSION}/github-release_${GITHUB_RELEASE_TOOL_VERSION}_${GITHUB_RELEASE_TOOL_ARCH}.tar.gz" | ||
tar xf "github-release_${GITHUB_RELEASE_TOOL_VERSION}_${GITHUB_RELEASE_TOOL_ARCH}.tar.gz" | ||
popd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
set -x | ||
set -e | ||
set -u | ||
|
||
shopt -s extglob | ||
|
||
|
||
echo "${INSTALL_DIR}" | ||
echo "${COMMIT_ID}" | ||
echo "${RELEASE_ZIP}" | ||
|
||
cd "${INSTALL_DIR}" | ||
# All files except "obj" dir | ||
7z a "../${RELEASE_ZIP}.zip" !(obj) | ||
cd .. | ||
|
||
github-release \ | ||
paulthomson/build-angle \ | ||
"v-${COMMIT_ID}" \ | ||
"${COMMIT_ID}" \ | ||
"$(echo -e "Automated build.\n$(git log --graph -n 3 --abbrev-commit --pretty='format:%h - %s <%an>')")" \ | ||
"${RELEASE_ZIP}.zip" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters