You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
version: 2 |
|
|
|
jobs: |
|
build: |
|
docker: |
|
- image: ubuntu:16.04 |
|
parallelism: 3 |
|
resource_class: large |
|
working_directory: ~/monero-stratum |
|
branches: |
|
only: |
|
- master |
|
steps: |
|
- run: | |
|
apt-get -qq update |
|
apt-get install -y -qq libboost-all-dev golang curl cmake build-essential libssl-dev git-core |
|
- restore_cache: |
|
keys: |
|
- v1-monero-{{ arch }}-v0.11.1.0.tar.gz |
|
- run: | |
|
curl -L -o ~/v0.11.1.0.tar.gz https://github.com/monero-project/monero/archive/v0.11.1.0.tar.gz |
|
tar xzvf ~/v0.11.1.0.tar.gz -C ~/ |
|
pushd ~/monero-0.11.1.0 && cmake -DBUILD_SHARED_LIBS=1 . && make && popd |
|
- save_cache: |
|
key: v1-monero-{{ arch }}-v0.11.1.0.tar.gz |
|
paths: |
|
- ~/monero-0.11.1.0 |
|
- checkout |
|
- run: |
|
name: Compile |
|
environment: |
|
- MONERO_DIR: "~/monero-0.11.1.0" |
|
command: | |
|
cmake . |
|
make |
|
- run: |
|
name: Test |
|
command: build/env.sh go test -v ./...
|
|
|