Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Trying to use the new docker repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican committed Dec 9, 2018
1 parent 37d18b9 commit cdc18ee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 54 deletions.
11 changes: 0 additions & 11 deletions centos_build.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
#!/bin/bash

# Update the system
yum upgrade -y &&
yum autoremove -y &&

# Install build dependencies
yum install -y wget gcc make rpm-build redhat-rpm-config &&

# Create needed directories and macros
mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} &&
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros &&

# Create the package
cd /root &&
mkdir -vp super-analyzer-$TAG &&
Expand Down
16 changes: 0 additions & 16 deletions debian_build.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
#!/bin/bash

# Update the system
apt-get update -y &&
apt-get upgrade -y &&
apt-get dist-upgrade -y &&
apt-get autoremove -y &&

# Install build dependencies
apt-get install -y curl build-essential dpkg libc-bin liblzma-dev &&

# Install Rust
curl https://sh.rustup.rs -sSf | sh -s -- -y &&
source ~/.cargo/env &&

# Install cargo-deb
cargo install cargo-deb &&

# Generate the .deb file
cd /root/super &&
cargo deb -v &&
Expand Down
7 changes: 0 additions & 7 deletions fedora_build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
#!/bin/bash

# Update the system
dnf upgrade --refresh -y &&
dnf autoremove -y &&

# Install build dependencies
dnf install -y wget gcc fedora-packager &&

# Create the package
cd /root &&
mkdir -v super-analyzer-$TAG &&
Expand Down
8 changes: 4 additions & 4 deletions travis-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ elif [ "$action" = "documentation" ]; then
# Runs packaging tests for pull requests, new releases or release preparations in Ubuntu and Fedora.
elif [ "$action" = "dist_test" ]; then
mkdir -pv releases &&
docker pull "$package:latest" &&
docker run -d -t -e TAG=$TAG -v $TRAVIS_BUILD_DIR:/root/super --name "$package" --privileged "$package:latest" "/bin/bash" &&
docker pull "superandroidanalyzer/$package:latest" &&
docker run -d -t -e TAG=$TAG -v $TRAVIS_BUILD_DIR:/root/super --name "$package" --privileged "superandroidanalyzer/$package:latest" "/bin/bash" &&
docker exec "$package" "/root/super/`echo $package`_build.sh"

elif [ "action" = "deploy" ]; then
if [ -n "$TRAVIS_TAG" ]; then
mkdir -pv releases &&
for PACKAGE in "debian" "ubuntu" "fedora" "centos"; do
docker pull "$PACKAGE:latest" &&
docker run -d -t -e TAG=$TAG -v $TRAVIS_BUILD_DIR:/root/super --name "$PACKAGE" --privileged "$PACKAGE:latest" "/bin/bash" &&
docker pull "superandroidanalyzer/$PACKAGE:latest" &&
docker run -d -t -e TAG=$TAG -v $TRAVIS_BUILD_DIR:/root/super --name "$PACKAGE" --privileged "superandroidanalyzer/$PACKAGE:latest" "/bin/bash" &&
docker exec "$PACKAGE" "/root/super/`echo $PACKAGE`_build.sh"
done
fi
Expand Down
16 changes: 0 additions & 16 deletions ubuntu_build.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,5 @@
#!/bin/bash

# Update the system
apt-get update -y &&
apt-get upgrade -y &&
apt-get dist-upgrade -y &&
apt-get autoremove -y &&

# Install build dependencies
apt-get install -y curl build-essential dpkg libc-bin liblzma-dev &&

# Install Rust
curl https://sh.rustup.rs -sSf | sh -s -- -y &&
source ~/.cargo/env &&

# Install cargo-deb
cargo install cargo-deb &&

# Generate the .deb file
cd /root/super &&
cargo deb -v &&
Expand Down

0 comments on commit cdc18ee

Please sign in to comment.