This repository has been archived by the owner on Aug 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
61 lines (60 loc) · 1.53 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: 2
jobs:
build:
docker:
- image: circleci/openjdk:8-jdk-node-browsers
steps:
- checkout
- run: pwd
- attach_workspace:
at: ~/project
- run:
name: Update apt-get
command: sudo apt-get update
- run:
name: Install pip and ruby-dev
command: sudo apt-get install python-pip ruby-dev
- run:
name: Install SASS
command: sudo gem install sass
- run:
name: Update npm
command: sudo npm install -g npm@latest
- run:
name: Install html5validator
command: pip install html5validator
- run:
name: Install npm dependencies
command: npm install
- run:
name: Validate HTML
command: ~/.local/bin/html5validator --root . --blacklist node_modules
- run:
name: Compile SCSS
command: sass assets/scss/* assets/css/compiled.css
- run: cd ..
- persist_to_workspace:
root: ~/
paths:
- project
deploy:
machine:
enabled: true
working_directory: ~/project
steps:
- attach_workspace:
at: ~/project
- run:
name: Move into the project directory
command: cd ~/project/project/; ls
- run:
name: Deploy to S3
command: aws s3 sync ./ s3://prototype.ustaxcourt.gov --delete
workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy:
requires:
- build