Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c0f9c79

Browse files
committed
Add basic travis integration
1 parent bc16185 commit c0f9c79

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: dart
2+
sudo: required
3+
before_install:
4+
- ./travis/before_install.sh
5+
before_script:
6+
- ./travis/setup.sh
7+
- export PATH=$PWD/depot_tools:$PATH
8+
- export BOTO_CONFIG=$PWD/boto
9+
- cd src
10+
script: ./travis/build.sh

travis/before_install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
set -ex
3+

travis/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
./sky/tools/gn --debug
5+
ninja -j 8 -C out/Debug

travis/gclient

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
solutions = [{
2+
"name" : "src",
3+
"url" : "https://github.com/domokit/sky_engine.git",
4+
"deps_file" : "DEPS",
5+
"managed" : False,
6+
"safesync_url": "",
7+
}]
8+
target_os = ['android', 'linux']

travis/setup.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
# Create an src/ directory to work with.
5+
# TODO(alhaad): This is a temporary hack. Find a better way to do this.
6+
mkdir ../src
7+
mv * ../src
8+
mv .??* ../src
9+
mv ../src .
10+
11+
# Get depot_tools.
12+
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
13+
export PATH="$(pwd)/depot_tools:${PATH}"
14+
15+
# Get gsutil
16+
rm -f gsutil.tar.gz
17+
wget https://storage.googleapis.com/pub/gsutil.tar.gz
18+
tar xzf gsutil.tar.gz
19+
20+
# Get dependencies.
21+
sudo apt-get install libdbus-1-dev
22+
sudo apt-get install libgconf2-dev
23+
sudo apt-get install python-openssl
24+
sudo easy_install pip
25+
sudo pip install requests
26+
27+
# Setup .gclient file.
28+
cp src/travis/gclient .gclient
29+
30+
cd src
31+
gclient sync
32+
33+
# Install Google Play Services.
34+
echo "y" | build/install-android-sdks.sh

0 commit comments

Comments
 (0)