diff --git a/.circleci/config.yml b/.circleci/config.yml index c76f6f58f5f2c6efdb7721dc8c389e1a91ad7079..adb79728efa03df1ea83a095882b06de987bfda6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,9 +8,15 @@ jobs: working_directory: /go/src/github.com/turt2live/matrix-media-repo steps: - checkout - - run: go get github.com/constabulary/gb/... - - run: gb vendor restore - - run: gb build all + - run: + name: get gb + command: 'go get github.com/constabulary/gb/...' + - run: + name: restore vendor packages + command: 'gb vendor restore' + - run: + name: gb build + command: 'gb build all' - store_artifacts: path: bin/media_repo destination: media_repo @@ -24,15 +30,29 @@ jobs: steps: # Build the project - checkout - - run: go get github.com/constabulary/gb/... - - run: gb vendor restore - - run: gb build all + - run: + name: get gb + command: 'go get github.com/constabulary/gb/...' + - run: + name: restore vendor packages + command: 'gb vendor restore' + - run: + name: gb build + command: 'gb build all' # Install sytest - - run: cd /test - - run: wget -q https://github.com/matrix-org/sytest/archive/develop.tar.gz -O sytest.tar.gz - - run: tar --strip-components=1 -xf sytest.tar.gz + - run: + name: go to sytest + command: 'cd /test' + - run: + name: download sytest + command: 'wget -q https://github.com/matrix-org/sytest/archive/develop.tar.gz -O sytest.tar.gz' + - run: + name: unpack sytest + command: 'tar --strip-components=1 -xf sytest.tar.gz' # Finally, run the tests - - run: ./run-tests.sh + - run: + name: run sytests + command: './run-tests.sh' workflows: version: 2 build_and_test: