This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree 2 files changed +64
-4
lines changed
2 files changed +64
-4
lines changed Original file line number Diff line number Diff line change 1
1
language : dart
2
+ sudo : required
3
+
2
4
dart :
3
- - 1.24.2
4
- with_content_shell : true
5
+ - stable
6
+
7
+ addons :
8
+ apt :
9
+ packages :
10
+ - ttf-kochi-mincho
11
+ - ttf-kochi-gothic
12
+ - ttf-dejavu
13
+ - ttf-indic-fonts
14
+ - fonts-tlwg-garuda
15
+
5
16
before_install :
6
- - export DISPLAY=:99.0
7
- - sh -e /etc/init.d/xvfb start
17
+ # Workaround for https://github.com/travis-ci/travis-ci/issues/8607
18
+ - sudo rm -vf /etc/apt/sources.list.d/*riak*
19
+ # Content shell needs this font. Since it has a EULA, we need to manually
20
+ # install it.
21
+ #
22
+ # TODO: remove this and use "sudo: false" when travis-ci/travis-ci#4714 is
23
+ # fixed.
24
+ - sudo apt-get update -yq
25
+ - sudo sh -c "echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections"
26
+ - sudo apt-get install msttcorefonts -qq
27
+
28
+ - mkdir -p bin
29
+ - export PATH="$PATH:`pwd`/bin/"
30
+ - ln -s `which chromium-browser` bin/google-chrome
31
+
32
+ - wget "http://gsdview.appspot.com/dart-archive/channels/stable/release/latest/dartium/content_shell-linux-x64-release.zip"
33
+ - unzip content_shell-linux-x64-release.zip
34
+ - ln -s `pwd`/`echo drt-linux-*`/content_shell bin/content_shell
35
+
36
+ - export DISPLAY=:99.0
37
+ - export PATH=$PATH":$PWD"
38
+ - sh -e /etc/init.d/xvfb start
39
+
8
40
script :
9
41
- pub run dart_dev format --check
10
42
- pub run dart_dev analyze
Original file line number Diff line number Diff line change
1
+ FROM drydock-prod.workiva.net/workiva/smithy-runner-generator:350667 as build
2
+
3
+ # Build Environment Vars
4
+ ARG BUILD_ID
5
+ ARG BUILD_NUMBER
6
+ ARG BUILD_URL
7
+ ARG GIT_COMMIT
8
+ ARG GIT_BRANCH
9
+ ARG GIT_TAG
10
+ ARG GIT_COMMIT_RANGE
11
+ ARG GIT_HEAD_URL
12
+ ARG GIT_MERGE_HEAD
13
+ ARG GIT_MERGE_BRANCH
14
+ ARG GIT_SSH_KEY
15
+ ARG KNOWN_HOSTS_CONTENT
16
+ WORKDIR /build/
17
+ ADD . /build/
18
+
19
+ RUN mkdir /root/.ssh && \
20
+ echo "$KNOWN_HOSTS_CONTENT" > "/root/.ssh/known_hosts" && \
21
+ chmod 700 /root/.ssh/ && \
22
+ umask 0077 && echo "$GIT_SSH_KEY" >/root/.ssh/id_rsa && \
23
+ eval "$(ssh-agent -s)" && ssh-add /root/.ssh/id_rsa
24
+ RUN echo "Starting the script section" && \
25
+ pub get && \
26
+ echo "script section completed"
27
+ ARG BUILD_ARTIFACTS_BUILD=/build/pubspec.lock
28
+ FROM scratch
You can’t perform that action at this time.
0 commit comments