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

Commit dc94682

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

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
# Get depot_tools.
5+
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
6+
export PATH="$(pwd)/depot_tools:${PATH}"
7+
8+
# Get gsutil
9+
rm -f gsutil.tar.gz
10+
wget https://storage.googleapis.com/pub/gsutil.tar.gz
11+
tar xzf gsutil.tar.gz
12+
13+
# Get dependencies.
14+
sudo apt-get install libdbus-1-dev
15+
sudo apt-get install libgconf2-dev
16+
sudo apt-get install python-openssl
17+
sudo easy_install pip
18+
sudo pip install requests
19+
20+
gclient sync --gclientfile=travis/gclient

0 commit comments

Comments
 (0)