-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtravis.sh
executable file
·46 lines (39 loc) · 1.09 KB
/
travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
set -x
set -e
if [ "x$DEPS_ONLY$PACKAGE" = "x" ]; then
./runtests.sh
else
if [ "x$TARGET" = "x" ]; then
TARGET="amd64"
fi
if [ "$TARGET" = "amd64" ]; then
echo "building for amd64"
EASY_BUILD_TARGET="x64"
else
echo "building for $TARGET"
EASY_BUILD_TARGET="$TARGET"
fi
# Build the standalone Pedigree needed for package building.
# NOTE: this also creates a virtualenv if we aren't already in one.
if [ "x$DEPS_ONLY" = "x" ]; then
./standalone.sh $EASY_BUILD_TARGET
fi
OPTS="--only=$PACKAGE"
if [ "x$DEPS_ONLY" != "x" ]; then
# Make sure the build system can find the packages directory.
cat >local_environment.py <<EOF
def modify_environment(env):
env['APPS_BASE'] = '$PWD'
EOF
OPTS="--dryrun"
fi
# Build the specified package.
./buildPackages.sh "$TARGET" $OPTS
if [ "x$DEPS_ONLY" != "x" ]; then
dot -Tsvg dependencies.dot -o ./deps.svg
set +x
python scripts/upload_deps.py $UPLOAD_KEY ./deps.svg $TARGET
set -x
fi
fi