Skip to content

Add skynet config to run dart 2 #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 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
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ ENV DARTIUM_EXPIRATION_TIME=1577836800
WORKDIR /build/
ADD . /build/
RUN echo "Starting the script sections" && \
dart --version && \
pub get && \
pub run dependency_validator -i coverage,build_runner,build_test,build_web_compilers && \
echo "Script sections completed"
ARG BUILD_ARTIFACTS_AUDIT=/build/pubspec.lock
ARG BUILD_ARTIFACTS_BUILD=/build/pubspec.lock
ARG BUILD_ARTIFACTS_DART-DEPENDENCIES=/build/pubspec.lock
dart --version
# pub get && \
# pub run dependency_validator -i coverage,build_runner,build_test,build_web_compilers && \
# echo "Script sections completed"
# ARG BUILD_ARTIFACTS_AUDIT=/build/pubspec.lock
# ARG BUILD_ARTIFACTS_BUILD=/build/pubspec.lock
# ARG BUILD_ARTIFACTS_DART-DEPENDENCIES=/build/pubspec.lock
FROM scratch
6 changes: 6 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ dev_dependencies:
build_test: ">=0.9.4 <=0.11.0"
build_web_compilers: ">=0.2.0 <2.0.0"

dependency_overrides:
over_react:
git:
url: [email protected]:Workiva/over_react.git
ref: builder_generate_public_class

transformers:
- over_react
- test/pub_serve:
Expand Down
21 changes: 21 additions & 0 deletions skynet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: unit

description: Runs the unit tests

contact: The "TBD" slack room.

# https://github.com/Workiva/skynet-images/tree/dart2-chrome
image: "drydock.workiva.net/workiva/skynet-images:1591215"

size: large

timeout: long

run:
on-pull-request: true
when-branch-name-is:
- master

scripts:
- pub get
- xvfb-run -s '-screen 0 1024x768x24' pub run dart_dev test -p chrome