Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

this is drone test, not PR #477

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
kind: pipeline
name: default

steps:
- name: test
image: chain
pull: never
commands:
- export RUST_BACKTRACE=1
- export RUSTFLAGS=-Ctarget-feature=+aes,+ssse3
- export LD_LIBRARY_PATH=$HOME/lib
- export LIBRARY_PATH=$HOME/lib
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
- export PKG_CONFIG_PATH=$HOME/lib/pkgconfig
- cargo build
- cargo test
- echo "HOME FOLDER= " $HOME
15 changes: 15 additions & 0 deletions install_kcov.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
FILE=/usr/local/bin/kcov
if [ ! -f "$FILE" ]; then
echo "$FILE does not exist"
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz
tar xzf master.tar.gz
cd kcov-master
mkdir build
cd build
cmake ..
make
sudo make install
cd ../..
rm -rf kcov-master
fi
20 changes: 20 additions & 0 deletions install_zeromq.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
FILE=/home/travis/lib/libzmq.so
if [ ! -f "$FILE" ]; then
echo "$FILE does not exist"
wget https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz
tar xvfz libsodium-1.0.16.tar.gz
cd libsodium-1.0.16
./configure --prefix=$HOME
make
make install
cd ..

wget https://github.com/zeromq/libzmq/releases/download/v4.2.5/zeromq-4.2.5.tar.gz
tar xvfz zeromq-4.2.5.tar.gz
cd zeromq-4.2.5
./configure --prefix=$HOME --with-libsodium
make
make install
cd ..
fi
23 changes: 23 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
cat /etc/issue
sed -i 's/archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.list
rm -rf /var/lib/apt/lists/*
apt update
apt install wget curl -y
apt install python3 libssl-dev libcurl4-openssl-dev libelf-dev libdw-dev gcc binutils-dev libc6-dev -y
apt install pkg-config -y

apt install build-essential -y

wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
tar xf cmake-3.2.2.tar.gz
cd cmake-3.2.2
./configure
make
make install
cd ..


curl https://sh.rustup.rs -sSf | sh -s -- -y
cmake --version
echo "prepare OK"
1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apple