From d98ee46a7003647e773a4f24f95741373b2b12b5 Mon Sep 17 00:00:00 2001 From: Florian Weingarten Date: Mon, 13 Aug 2018 11:34:43 +0100 Subject: [PATCH] Convert CircleCI to TravisCI --- .circleci/config.yml | 26 -------------------------- .travis.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 26 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index b527aeb3..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,26 +0,0 @@ -version: 2 -jobs: - build: - docker: - - image: circleci/golang:1.10.2 - - working_directory: /go/src/github.com/Shopify/toxiproxy - - environment: - TEST_RESULTS: /tmp/test-results - - steps: - - checkout - - run: mkdir -p $TEST_RESULTS - - run: go get github.com/jstemmer/go-junit-report - - run: - name: Run unit tests - command: | - trap "go-junit-report <${TEST_RESULTS}/go-test.out > ${TEST_RESULTS}/go-test-report.xml" EXIT - make test | tee ${TEST_RESULTS}/go-test.out - - - store_test_results: - path: /tmp/test-results - - store_artifacts: - path: /tmp/test-results - destination: raw-test-output diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..b5387e03 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +sudo: false + +language: go + +go: + - 1.9.x + - 1.x + +git: + depth: 1 + +install: true + +before_script: + - go get github.com/tools/godep + - godep go build + +script: + - godep go test ./...