build: upgrades build pipeline from CircleCI 1.0 -> 2.0 (#11162)

build: upgrades build pipeline from CircleCI 1.0 -> 2.0
This commit is contained in:
Leonard Gram
2018-03-09 11:27:00 +01:00
committed by GitHub
parent 77cd7f34c7
commit 49de4ed28b
5 changed files with 135 additions and 67 deletions

View File

@@ -21,9 +21,6 @@ fi
yarn install --pure-lockfile --no-progress
source /etc/profile.d/rvm.sh
rvm use 2.1.9 --default
gem install fpm -v 1.4
echo "current dir: $(pwd)"

View File

@@ -10,15 +10,12 @@ function exit_if_fail {
fi
}
cd /home/ubuntu/.go_workspace/src/github.com/grafana/grafana
echo "running go fmt"
exit_if_fail test -z "$(gofmt -s -l ./pkg | tee /dev/stderr)"
echo "running go vet"
exit_if_fail test -z "$(go vet ./pkg/... | tee /dev/stderr)"
cd ~/dev/go/src/github.com/grafana/grafana
echo "building backend with install to cache pkgs"
exit_if_fail time go install ./pkg/cmd/grafana-server

View File

@@ -10,12 +10,6 @@ function exit_if_fail {
fi
}
cd /home/ubuntu/.go_workspace/src/github.com/grafana/grafana
rm -rf node_modules
npm install -g yarn --quiet
yarn install --pure-lockfile --no-progress
exit_if_fail npm run test:coverage
exit_if_fail npm run build

View File

@@ -16,7 +16,7 @@ config = merge(common, {
new webpack.SourceMapDevToolPlugin({
filename: null, // if no value is provided the sourcemap is inlined
test: /\.(ts|js)($|\?)/i // process .js and .ts files only
})
}),
]
});