Explorar el Código

Add .travis.yml

armaniferrante hace 4 años
padre
commit
301d2593af
Se han modificado 2 ficheros con 28 adiciones y 1 borrados
  1. 26 0
      .travis.yml
  2. 2 1
      README.md

+ 26 - 0
.travis.yml

@@ -0,0 +1,26 @@
+language: rust
+rust:
+  - stable
+cache: cargo
+env:
+  - NODE_VERSION="14.7.0"
+
+_defaults: &defaults
+  before_install:
+  - rustup component add rustfmt
+  - nvm install $NODE_VERSION
+
+jobs:
+  include:
+    - <<: *defaults
+      name: Build and Test Rust
+      script:
+        - cargo build
+        - cargo fmt -- --check
+        - cargo test
+    - <<: *defaults
+      name: Build and Test TypeScript
+      script:
+        - cd ts
+        - yarn
+        - yarn build

+ 2 - 1
README.md

@@ -1,6 +1,7 @@
 # Anchor ⚓
 
-[![Docs](https://img.shields.io/badge/docs-tutorials-brightgreen)](https://project-serum.github.io/anchor/)
+[![Build Status](https://travis-ci.com/project-serum/anchor.svg?branch=master)](https://travis-ci.com/project-serum/anchor)
+[![Docs](https://img.shields.io/badge/docs-tutorials-orange)](https://project-serum.github.io/anchor/)
 [![Chat](https://img.shields.io/discord/739225212658122886?color=blueviolet)](https://discord.com/channels/739225212658122886)
 [![License](https://img.shields.io/github/license/project-serum/anchor?color=blue)](https://opensource.org/licenses/Apache-2.0)